if (fEditor != null) { if (!fEditor.isDirty()) {
if (fEditor != null && !fEditor.isDirty())
	public void showInEditor(IMarker marker, IEditorInput input, String editorId) {		IWorkbenchPage page= SearchPlugin.getActivePage();		if (page == null)			return;				IEditorPart editor= null;		IEditorPart[] editorParts= page.getEditors();		for (int i= 0; i < editorParts.length; i++) {			IEditorPart part= editorParts[i];			if (input.equals(part.getEditorInput())) {				editor= part;				break;			}		}		if (editor == null) {			if (fEditor != null) {				if (!fEditor.isDirty()) {					page.closeEditor(fEditor, false);				}			}			try {				editor= page.openEditor(input, editorId, false);				fEditor = editor;			} catch (PartInitException ex) {				ExceptionHandler.handle(ex, JavaPlugin.getResourceBundle(), "Search.Error.openEditor.");			}		} else {			page.bringToTop(editor);		}		editor.gotoMarker(marker);	}