IEditorPart editor = PlatformUI.getWorkbench( ) .getActiveWorkbenchWindow( ).getActivePage( ).getActiveEditor( );
IEditorPart editor = UIUtil.getActiveReportEditor( );
	public void run( String[] params, ICheatSheetManager manager )	{		this.params = params;		IEditorPart editor = PlatformUI.getWorkbench( )				.getActiveWorkbenchWindow( ).getActivePage( ).getActiveEditor( );		if ( editor instanceof MultiPageReportEditor )		{			// switch to Design Page			( (MultiPageReportEditor) editor ).setActivePage( ReportLayoutEditorFormPage.ID);			// init some variables			ReportLayoutEditor reportDesigner = (ReportLayoutEditor) ( (MultiPageReportEditor) editor )					.getActivePageInstance( );			AbstractEditPartViewer viewer = (AbstractEditPartViewer) reportDesigner					.getGraphicalViewer( );			// tries to select the EditPart for the item name			selectEditPartForItemName( params[0], (MultiPageReportEditor) editor, viewer );			// if the viewer selection contains a match for the class, proceed			selection = matchSelectionType( viewer );			if ( selection != null )			{				IAction action = getAction( reportDesigner );				if ( action != null && action.isEnabled( ) )				{					action.run( );				}			}			else			{				// show an error dialog asking to select the right element				showErrorWrongElementSelection( );			}		}		else		{			// show an error asking to select the right editor			showErrorWrongEditor( );		}	}