if(!(editorPart instanceof ITextEditor)) { return null; } ITextEditor textEditor = (ITextEditor)editorPart;
ITextEditor textEditor = (ITextEditor)compilationUnitEditor;
	public IAction getAction(String actionId) {		IEditorPart editorPart = this.getActiveEditor();		if(editorPart == null) {			return null;		}		if(!(editorPart instanceof ITextEditor)) {			return null;		}		ITextEditor textEditor = (ITextEditor)editorPart;		return textEditor.getAction(actionId);	}