Bug 184377 [RCP] There is an extra line in Menu File when you first open RCP [00]
Description: There is an extra line in Menu File when you first open RCP. Build number: 2.2.0.v20070427-1305 Steps to reproduce: 1. Open BIRT RCP. 2. Click top menu File/ Expected result: Menu file displays correctly. Actual result: See the screenshot. Error log: N/A
UI/org.eclipse.birt.report.designer.ui.rcp/src/org/eclipse/birt/report/designer/ui/internal/rcp/DesignerActionBarAdvisor.java
register( forwardHistoryAction );
		backwardHistoryAction = ActionFactory.BACKWARD_HISTORY.create( window );
		register( backwardHistoryAction );
		quitAction = ActionFactory.QUIT.create( window );
		register( quitAction );
		if ( window.getWorkbench( ).getIntroManager( ).hasIntro( ) )
		{
			introAction = ActionFactory.INTRO.create( window );
			register( introAction );
		}
		pinEditorContributionItem = ContributionItemFactory.PIN_EDITOR.create( window );
	}
	/**
	 * Creates the feature-dependent actions for the menu bar.
	 */
	private void makeFeatureDependentActions( IWorkbenchWindow window )
	{
		IPreferenceStore prefs = ReportPlugin.getDefault( )
				.getPreferenceStore( );
		String stateKey = "platformState"; 
		String prevState = prefs.getString( stateKey );
		String currentState = String.valueOf( Platform.getStateStamp( ) );
		boolean sameState = currentState.equals( prevState );
		if ( !sameState )
		{
			prefs.putValue( stateKey, currentState );
		}
	}
}