summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorning.zhang2012-08-22 23:11:53 (EDT)
committer dgao2012-08-22 23:11:53 (EDT)
commitf0c212c50d11a56392f14ff75c103ddc02e735fb (patch)
tree3a61afc9ee71b9fef8e5c913d6e7b9e12557b28c
parentfbd77331ae9e66b8e75eb4a8f707accd5a692256 (diff)
downloadorg.eclipse.birt-f0c212c50d11a56392f14ff75c103ddc02e735fb.zip
org.eclipse.birt-f0c212c50d11a56392f14ff75c103ddc02e735fb.tar.gz
org.eclipse.birt-f0c212c50d11a56392f14ff75c103ddc02e735fb.tar.bz2
Remove the restriction on cube element on the expression builder when creating a derived measure.
-rw-r--r--xtab/org.eclipse.birt.report.item.crosstab.ui/src/org/eclipse/birt/report/item/crosstab/internal/ui/dialogs/CrosstabComputedMeasureExpressionProvider.java66
1 files changed, 33 insertions, 33 deletions
diff --git a/xtab/org.eclipse.birt.report.item.crosstab.ui/src/org/eclipse/birt/report/item/crosstab/internal/ui/dialogs/CrosstabComputedMeasureExpressionProvider.java b/xtab/org.eclipse.birt.report.item.crosstab.ui/src/org/eclipse/birt/report/item/crosstab/internal/ui/dialogs/CrosstabComputedMeasureExpressionProvider.java
index 48a035a..2ec9786 100644
--- a/xtab/org.eclipse.birt.report.item.crosstab.ui/src/org/eclipse/birt/report/item/crosstab/internal/ui/dialogs/CrosstabComputedMeasureExpressionProvider.java
+++ b/xtab/org.eclipse.birt.report.item.crosstab.ui/src/org/eclipse/birt/report/item/crosstab/internal/ui/dialogs/CrosstabComputedMeasureExpressionProvider.java
@@ -31,38 +31,38 @@ public class CrosstabComputedMeasureExpressionProvider extends
super( handle, null );
}
- protected void addFilterToProvider( )
- {
- this.addFilter( new ExpressionFilter( ) {
-
- public boolean select( Object parentElement, Object element )
- {
- if ( ExpressionFilter.CATEGORY.equals( parentElement )
- && ExpressionProvider.CURRENT_CUBE.equals( element ) )
- {
- // return false;
- }
- if ( CURRENT_CUBE.equals( parentElement ) )
- {
- PropertyHandle handle = null;
- if ( element instanceof PropertyHandle )
- handle = (PropertyHandle) element;
- else if ( element instanceof IAdaptable
- && ( (IAdaptable) element ).getAdapter( PropertyHandle.class ) instanceof PropertyHandle )
- handle = (PropertyHandle) ( (IAdaptable) element ).getAdapter( PropertyHandle.class );
-
- if ( handle != null
- && handle.getPropertyDefn( )
- .getName( )
- .equals( ICubeModel.MEASURE_GROUPS_PROP ) )
- {
- return true;
- }
- return false;
- }
- return true;
- }
- } );
- }
+// protected void addFilterToProvider( )
+// {
+// this.addFilter( new ExpressionFilter( ) {
+//
+// public boolean select( Object parentElement, Object element )
+// {
+// if ( ExpressionFilter.CATEGORY.equals( parentElement )
+// && ExpressionProvider.CURRENT_CUBE.equals( element ) )
+// {
+// // return false;
+// }
+// if ( CURRENT_CUBE.equals( parentElement ) )
+// {
+// PropertyHandle handle = null;
+// if ( element instanceof PropertyHandle )
+// handle = (PropertyHandle) element;
+// else if ( element instanceof IAdaptable
+// && ( (IAdaptable) element ).getAdapter( PropertyHandle.class ) instanceof PropertyHandle )
+// handle = (PropertyHandle) ( (IAdaptable) element ).getAdapter( PropertyHandle.class );
+//
+// if ( handle != null
+// && handle.getPropertyDefn( )
+// .getName( )
+// .equals( ICubeModel.MEASURE_GROUPS_PROP ) )
+// {
+// return true;
+// }
+// return false;
+// }
+// return true;
+// }
+// } );
+// }
}