IAction updateAction= getAction(textEditor, "Display"); if (updateAction instanceof IUpdate) { ((IUpdate)updateAction).update(); } fDisplay.setAction(updateAction); updateAction= getAction(textEditor, "Inspect"); if (updateAction instanceof IUpdate) { ((IUpdate)updateAction).update(); } fInspect.setAction(updateAction);
	public void setActiveEditor(IEditorPart part) {				super.setActiveEditor(part);				ITextEditor textEditor= null;		if (part instanceof ITextEditor)			textEditor= (ITextEditor) part;				fOpenOnSelection.setContentEditor(textEditor);		fOpenOnTypeSelection.setContentEditor(textEditor);				fAddImportOnSelection.setAction(getAction(textEditor,"AddImportOnSelection")); //$NON-NLS-1$		fOrganizeImports.setAction(getAction(textEditor, "OrganizeImports")); //$NON-NLS-1$		fShowJavaDoc.setAction(getAction(textEditor, "ShowJavaDoc"));				fTogglePresentation.setEditor(textEditor);		fToggleTextHover.setEditor(textEditor);		fPreviousError.setEditor(textEditor);		fNextError.setEditor(textEditor);	}