summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorning.zhang2012-07-10 04:19:16 (EDT)
committer dgao2012-07-10 04:19:16 (EDT)
commitfb23977a31b05f6ced5b0252c0d3e1dce753a265 (patch)
treeb7183023facf7e534c66571f31c02dc46b273c1f
parent80bbd64a5dd126d837fba9cf20281ecac5a22043 (diff)
downloadorg.eclipse.birt-fb23977a31b05f6ced5b0252c0d3e1dce753a265.zip
org.eclipse.birt-fb23977a31b05f6ced5b0252c0d3e1dce753a265.tar.gz
org.eclipse.birt-fb23977a31b05f6ced5b0252c0d3e1dce753a265.tar.bz2
Used index instead of text to look up the value.
-rw-r--r--UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/InputParameterDialog.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/InputParameterDialog.java b/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/InputParameterDialog.java
index 07b248b..da4a55a 100644
--- a/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/InputParameterDialog.java
+++ b/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/InputParameterDialog.java
@@ -590,14 +590,14 @@ public class InputParameterDialog extends BaseDialog
if ( !isRequired && !nullAdded )
{
combo.add( NULL_VALUE_STR );
- combo.setData( NULL_VALUE_STR, null );
+ combo.setData( String.valueOf(combo.getItemCount() - 1), null );
nullAdded = true;
}
}
else
{
combo.add( label );
- combo.setData( label, choice.getValue( ) );
+ combo.setData( String.valueOf(combo.getItemCount() - 1), choice.getValue( ) );
}
}
@@ -690,7 +690,7 @@ public class InputParameterDialog extends BaseDialog
if ( combo.getSelectionIndex( ) != -1 )
{
paramValues.put( listParam.getHandle( ).getName( ),
- combo.getData( combo.getItem( combo.getSelectionIndex( ) ) ) );
+ combo.getData( String.valueOf(combo.getSelectionIndex( )) ));
}
if ( listParam.getParentGroup( ) instanceof CascadingParameterGroup )
{