if (ep instanceof JavaEditor) return (JavaEditor) ep;
if (ep instanceof JavaEditor) { JavaEditor je= (JavaEditor) ep; if (fei.equals(je.getEditorInput())) return (JavaEditor) ep; }
	final JavaEditor getEditor(IFile file) {		IWorkbench workbench= JavaPlugin.getDefault().getWorkbench();		IWorkbenchWindow[] windows= workbench.getWorkbenchWindows();		for (int i= 0; i < windows.length; i++) {			IWorkbenchPage[] pages= windows[i].getPages();			for (int x= 0; x < pages.length; x++) {				IEditorPart[] editors= pages[x].getDirtyEditors();				for (int z= 0; z < editors.length; z++) {					IEditorPart ep= editors[z];					if (ep instanceof JavaEditor)						return (JavaEditor) ep;				}			}		}		return null;	}