if (editor != null) {
if (editor != null && editor.equals(page.getActivePart())) {
	private IEditorInput getActiveEditorInput() {		IWorkbenchPage page= JavaPlugin.getActivePage();		if (page != null) {			IEditorPart editor= page.getActiveEditor();			if (editor != null) {				return editor.getEditorInput();			}		}		return null;	}