Bug 169058 While double click element node in source outline of XML source editor, the design file is regarded as 'edited' [00]
Build Number: 2.2.0.v20061225-1650 Description: While double click element node in source outline of XML source editor, the design file is regard as 'edited' Step to reproduce: 1. new a report and insert a label item 2. switch to the xml source editor with report outline 3. double click the label item again and again Actual result: The save button on toolbar has change its state with the double click operation
UI/org.eclipse.birt.report.designer.ui.editor.xml.wtp/src/org/eclipse/birt/report/designer/ui/editor/pages/xml/ReportXMLSourceEditorFormPage.java
List selectedObjects = request.getSelectionObject( );
		ModuleHandle model = ( (DesignerOutlinePage) request.getSource( ) ).getRoot( );
		if ( !selectedObjects.isEmpty( ) )
		{
			if ( selectedObjects.get( 0 ) instanceof ReportElementHandle )
			{
				setHighlightLine( model.getLineNoByID( ( (ReportElementHandle) selectedObjects.get( 0 ) ).getID( ) ) );
			}
			if ( selectedObjects.get( 0 ) instanceof LibraryHandle )
			{
				setHighlightLine( model.getLineNoByID( ( (LibraryHandle) selectedObjects.get( 0 ) ).getID( ) ) );
			}
		}
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.birt.report.designer.ui.editors.IReportEditorPage#onBroughtToTop(org.eclipse.birt.report.designer.ui.editors.IReportEditorPage)
	 */
	public boolean onBroughtToTop( IReportEditorPage prePage )
	{
		if ( getEditorInput( ) != prePage.getEditorInput( ) )
		{
			setInput( prePage.getEditorInput( ) );
		}
		if ( prePage != this
				&& ( prePage.isDirty( ) || prePage.getStaleType( ) != IPageStaleType.NONE ) )
		{
			prePage.doSave( null );
			prePage.markPageStale( IPageStaleType.NONE );