IWorkingCopyManager manager= JavaPlugin.getDefault().getWorkingCopyManager(); javaElement= manager.getWorkingCopy(fEditor.getEditorInput());
WorkingCopyManager manager= JavaPlugin.getDefault().getWorkingCopyManager(); javaElement= manager.getWorkingCopy(fEditor.getEditorInput(), false);
	private IJavaElement getInputElement() {		IJavaElement javaElement= null;		if (fEditor instanceof CompilationUnitEditor) {			IWorkingCopyManager manager= JavaPlugin.getDefault().getWorkingCopyManager();			javaElement= manager.getWorkingCopy(fEditor.getEditorInput());			if (javaElement instanceof ICompilationUnit) {				ICompilationUnit unit= (ICompilationUnit) javaElement;				try {					JavaModelUtil.reconcile(unit);				} catch (JavaModelException x) {					JavaPlugin.log(x);				}			}		} else if (fEditor instanceof ClassFileEditor) {			IClassFileEditorInput editorInput= (IClassFileEditorInput) fEditor.getEditorInput();			javaElement= editorInput.getClassFile();		}		return javaElement;	}