element= JavaModelUtil.findParentOfKind((IJavaElement)obj, IJavaElement.CLASS_FILE);
element= JavaModelUtil.findElementOfKind((IJavaElement)obj, IJavaElement.CLASS_FILE);
	private void linkToEditor(IStructuredSelection selection) {			//if (!isLinkingEnabled())		//	return; 		Object obj= selection.getFirstElement();		Object element= null;		if (selection.size() == 1) {			if (obj instanceof IJavaElement) {				IJavaElement cu= JavaModelUtil.findParentOfKind((IJavaElement)obj, IJavaElement.COMPILATION_UNIT);				if (cu != null)					element= getResourceFor(cu);				if (element == null)					element= JavaModelUtil.findParentOfKind((IJavaElement)obj, IJavaElement.CLASS_FILE);			}			else if (obj instanceof IFile)				element= obj;							if (element == null)				return;			IWorkbenchPage page= getSite().getPage();			IEditorPart editorArray[]= page.getEditors();			for (int i= 0; i < editorArray.length; ++i) {				IEditorPart editor= editorArray[i];				Object input= getElementOfInput(editor.getEditorInput());									if (input != null && input.equals(element)) {					page.bringToTop(editor);					if (obj instanceof ISourceReference) 						EditorUtility.revealInEditor(editor, (ISourceReference)obj);					return;				}			}		}	}