fix bug in view causing single cell load
authorChristian Schwarzinger <christian.schwarzinger@proclos.com>
Thu, 07 May 2015 09:04:40 +0200
changeset 4096d9e73117d5
parent 39 13a3cb603691
child 41 70925dbb524f
fix bug in view causing single cell load
dist/PalOOCa.jar
dist/PalOOCa.oxt
dist/external_jars/jars.properties
src/org/palooca/PalOOCaView.java
     1.1 Binary file dist/PalOOCa.jar has changed
     2.1 Binary file dist/PalOOCa.oxt has changed
     3.1 --- a/dist/external_jars/jars.properties	Thu Nov 20 07:54:38 2014 +0100
     3.2 +++ b/dist/external_jars/jars.properties	Thu May 07 09:04:40 2015 +0200
     3.3 @@ -1,3 +1,3 @@
     3.4  #PackageActionDescription
     3.5 -#Thu Nov 20 07:53:36 CET 2014
     3.6 +#Thu May 07 09:00:47 CEST 2015
     3.7  external.jars=external_jars/dom4j-1.6.1.jar external_jars/swing-layout-1.0.4.jar external_jars/appframework-1.0.3.jar external_jars/swing-worker-1.1.jar external_jars/AbsoluteLayout.jar external_jars/log4j-1.2.16.jar external_jars/xercesImpl.jar external_jars/h2-1.3.172.jar external_jars/olap4j-1.2.0-SNAPSHOT.jar external_jars/olap4j-xmla-1.2.0-SNAPSHOT.jar external_jars/palojlib-5.1.jar external_jars/jdom-2.0.5.jar
     4.1 --- a/src/org/palooca/PalOOCaView.java	Thu Nov 20 07:54:38 2014 +0100
     4.2 +++ b/src/org/palooca/PalOOCaView.java	Thu May 07 09:04:40 2015 +0200
     4.3 @@ -797,10 +797,11 @@
     4.4                  calc.calculate();
     4.5              }
     4.6          }
     4.7 -        DataValueHandler.endBatchUpdate(context,servDB+";"+cube.getName());
     4.8 +        
     4.9          System.err.println("Generate post DataValueHandler in "+(System.currentTimeMillis()-time)+"ms");
    4.10          postprocessUpdateStyles(targetRange, top, rowSpan, colSpan);
    4.11          System.err.println("Generate finished in "+(System.currentTimeMillis()-time)+"ms");
    4.12 +        DataValueHandler.endBatchUpdate(context,servDB+";"+cube.getName());
    4.13          actionLockable.removeActionLock();
    4.14          xSpreadsheetModel.unlockControllers();
    4.15        }
    4.16 @@ -1013,10 +1014,13 @@
    4.17      }
    4.18  
    4.19      private void postprocessUpdateStyles(XCellRange targetRange, int top, int rowSpan, int colSpan) {
    4.20 +
    4.21          if (filterDimensions.size() > 0) {
    4.22              manager.setCellStyle(targetRange, "PaloData");
    4.23          }
    4.24  
    4.25 +        
    4.26 +
    4.27          try {
    4.28              for (int i=1; i < rowSpan-top; i+=2) {
    4.29                  XCellRange oddRange = manager.getRange(rowDimensions.size(), top+i+1, colSpan, top+i+1);
    4.30 @@ -1090,6 +1094,8 @@
    4.31                  }
    4.32              }
    4.33  
    4.34 +
    4.35 +
    4.36              targetRange = manager.getRange(0, 0, colSpan, rowSpan);
    4.37              XColumnRowRange colRowRange = (XColumnRowRange) UnoRuntime.queryInterface(XColumnRowRange.class, targetRange);
    4.38              XTableColumns columns = colRowRange.getColumns();
    4.39 @@ -1112,6 +1118,7 @@
    4.40          } catch (com.sun.star.uno.Exception ex) {
    4.41              ex.printStackTrace();
    4.42          }
    4.43 +
    4.44      }
    4.45  
    4.46      private boolean anyAttributeInDimensionList(Vector<DimensionSubsetListItem> items) {