if (cueditor != null) { cueditor.fStandardActionGroups.fillActionBars(bars); }
if (part instanceof CompilationUnitEditor) { CompilationUnitEditor cuEditor= (CompilationUnitEditor)part; cuEditor.getStandardActionGroup().fillActionBars(bars); }
	public void setActiveEditor(IEditorPart part) {				super.setActiveEditor(part);				registerListeners(part);				ITextEditor textEditor= null;		if (part instanceof ITextEditor)			textEditor= (ITextEditor) part;		CompilationUnitEditor cueditor= null;				if (part instanceof CompilationUnitEditor)			cueditor= (CompilationUnitEditor)part;				fTogglePresentation.setEditor(textEditor);		fToggleTextHover.setEditor(textEditor);		fPreviousError.setEditor(textEditor);		fNextError.setEditor(textEditor);				fStructureSelectEnclosingAction.setAction(getAction(textEditor, StructureSelectionAction.ENCLOSING));		fStructureSelectNextAction.setAction(getAction(textEditor, StructureSelectionAction.NEXT));		fStructureSelectPreviousAction.setAction(getAction(textEditor, StructureSelectionAction.PREVIOUS));		fStructureSelectHistoryAction.setAction(getAction(textEditor, StructureSelectionAction.HISTORY));				IActionBars bars= getActionBars();				// Source menu.		bars.setGlobalActionHandler(JdtActionConstants.COMMENT, getAction(textEditor, "Comment")); //$NON-NLS-1$		bars.setGlobalActionHandler(JdtActionConstants.UNCOMMENT, getAction(textEditor, "Uncomment")); //$NON-NLS-1$		bars.setGlobalActionHandler(JdtActionConstants.FORMAT, getAction(textEditor, "Format")); //$NON-NLS-1$		bars.setGlobalActionHandler(JdtActionConstants.ADD_IMPORT, getAction(textEditor, "AddImportOnSelection")); //$NON-NLS-1$		bars.setGlobalActionHandler(JdtActionConstants.ORGANIZE_IMPORTS, getAction(textEditor, "OrganizeImports")); //$NON-NLS-1$		bars.setGlobalActionHandler(JdtActionConstants.SURROUND_WITH_TRY_CATCH, getAction(textEditor, "SurroundWithTryCatch")); //$NON-NLS-1$				// Navigate menu			if (cueditor != null) {			cueditor.fStandardActionGroups.fillActionBars(bars);		}											}