Bug 148365 dataset script methods management
Create a report with several datasets (scripted ones, in my case). Select the first one, then choose the script tab ; write some script Save the report Select another one, then choose the script tab (same method ; write some script Save the report Select the first one again, then change the script DONT save Select the over one : the changes made to the first one appears ! => you may save the repor and search for a while before understanding the pb...
UI/org.eclipse.birt.report.designer.ui.editors.schematic/src/org/eclipse/birt/report/designer/internal/ui/editors/script/JSEditor.java
if ( sel.length == 1 )
					{
						if ( sel[0] instanceof IPropertyDefn )
						{
							
							
							
							DesignElementHandle desHandle = (DesignElementHandle) cmbExprListViewer.getInput( );
							saveModelIfNeeds( );
							
							
							
							
							
							IPropertyDefn elePropDefn = (IPropertyDefn) sel[0];
							cmbItemLastSelected = elePropDefn;
							setEditorText( desHandle.getStringProperty( elePropDefn.getName( ) ) );
							setIsModified( false );
														selectionMap.put( getModel( ), selection );
							String method = cmbItemLastSelected.getName( );
							Map argMap = DEUtil.getDesignElementMethodArguments( desHandle,
									method );
							context.clear( );
							for ( Iterator iter = argMap.entrySet( ).iterator( ); iter.hasNext( ); )
							{
								Map.Entry element = (Map.Entry) iter.next( );
								String name = (String) element.getKey( );
								String type = (String) element.getValue( );