summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorning.zhang2012-03-31 02:15:24 (EDT)
committer dgao2012-03-31 02:15:24 (EDT)
commitf543fc6a5433ac477953b6a34f4b07842dfca9ef (patch)
tree651b1f1a8f863663c388dc4adbe8bf971e577356
parenta3760c08c2966b5ddb5c1ed824e9c4f98d83f97d (diff)
downloadorg.eclipse.birt-f543fc6a5433ac477953b6a34f4b07842dfca9ef.zip
org.eclipse.birt-f543fc6a5433ac477953b6a34f4b07842dfca9ef.tar.gz
org.eclipse.birt-f543fc6a5433ac477953b6a34f4b07842dfca9ef.tar.bz2
Summary: Restore arg value if TimePeriod changes.
Description of Issue: Number of Year(s) Ago value is reset by selecting reference date option. Description of Resolution: Restore arg value after switching between static and dynamic reference date type.
-rw-r--r--xtab/org.eclipse.birt.report.item.crosstab.ui/src/org/eclipse/birt/report/item/crosstab/internal/ui/dialogs/CrosstabBindingDialogHelper.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/xtab/org.eclipse.birt.report.item.crosstab.ui/src/org/eclipse/birt/report/item/crosstab/internal/ui/dialogs/CrosstabBindingDialogHelper.java b/xtab/org.eclipse.birt.report.item.crosstab.ui/src/org/eclipse/birt/report/item/crosstab/internal/ui/dialogs/CrosstabBindingDialogHelper.java
index a950093..9866c8a 100644
--- a/xtab/org.eclipse.birt.report.item.crosstab.ui/src/org/eclipse/birt/report/item/crosstab/internal/ui/dialogs/CrosstabBindingDialogHelper.java
+++ b/xtab/org.eclipse.birt.report.item.crosstab.ui/src/org/eclipse/birt/report/item/crosstab/internal/ui/dialogs/CrosstabBindingDialogHelper.java
@@ -559,6 +559,7 @@ public class CrosstabBindingDialogHelper extends AbstractBindingDialogHelper
for ( int i = 0; i < infos.size( ); i++ )
{
String argName = infos.get( i ).getName( );
+ String argValue = calculationParamsValueMap.get( argName );
if ( calculationParamsMap.containsKey( argName ) )
{
if ( getArgumentValue( getBinding( ), argName ) != null )
@@ -595,6 +596,11 @@ public class CrosstabBindingDialogHelper extends AbstractBindingDialogHelper
}
}
+ // restore arg value
+ if ( control instanceof Text && argValue != null )
+ {
+ ((Text)control).setText(argValue);
+ }
}
}
}