Bug 130091 [regression]Save button failed after edit script in data item.
Description: Save button failed after edit script in data item. Steps to reproduce: 1. New a report 2. Insert a data item and input "data". 3. Select data item and transfer to script pane, input some words. 4. Transfer back to Layout and save the report. Expected result: Save action works. Actual result: Save action failed.
UI/org.eclipse.birt.report.designer.ui.editors.schematic/src/org/eclipse/birt/report/designer/ui/editors/pages/ReportScriptFormPage.java
DesignerOutlinePage outlinePage = new DesignerOutlinePage( getModel( ) );
			return outlinePage;
		}
		return jsEditor.getAdapter( adapter );
	}
	/**
	 * Get JS Script editor.
	 * @return
	 */
	public IEditorPart getScriptEditor( )
	{
		return jsEditor;
	}
	/* (non-Javadoc)
	 * @see org.eclipse.birt.report.designer.ui.editors.pages.ReportFormPage#canLeaveThePage()
	 */
	public boolean canLeaveThePage( )
	{
		jsEditor.saveModelIfNeeds( );
		return super.canLeaveThePage( );
	}
	
	private IReportProvider getProvider( )
	{
		return (IReportProvider) getEditor( ).getAdapter( IReportProvider.class );
	}
}