return (IJavaElement)editorInput.getAdapter(IJavaElement.class);
return JavaUI.getEditorInputJavaElement(editorInput);
	public static IJavaElement getActiveEditorJavaInput() {		IWorkbenchPage page= JavaPlugin.getActivePage();		if (page != null) {			IEditorPart part= page.getActiveEditor();			if (part != null) {				IEditorInput editorInput= part.getEditorInput();				if (editorInput != null) {					return (IJavaElement)editorInput.getAdapter(IJavaElement.class);				}			}		}		return null;	}