IPackageFragmentRoot root= (IPackageFragmentRoot) je.getAncestor(IJavaElement.PACKAGE_FRAGMENT_ROOT); if (root.isArchive()) return false;
	public boolean isShownInEditor(Match match, IEditorPart editor) {		IEditorInput editorInput= editor.getEditorInput();		if (match.getElement() instanceof IJavaElement) {			IJavaElement je= (IJavaElement) match.getElement();			if (editorInput instanceof IFileEditorInput) {				IFile inputFile= ((IFileEditorInput)editorInput).getFile();				IResource matchFile= null;				ICompilationUnit cu= (ICompilationUnit) je.getAncestor(IJavaElement.COMPILATION_UNIT);				if (cu != null) {					matchFile= cu.getResource();				} else {					IClassFile cf= (IClassFile) je.getAncestor(IJavaElement.CLASS_FILE);					if (cf != null)						matchFile= cf.getResource();				}				if (matchFile != null)					return inputFile.equals(matchFile);				else					return false;			} else if (editorInput instanceof IClassFileEditorInput) {				return ((IClassFileEditorInput)editorInput).getClassFile().equals(je.getAncestor(IJavaElement.CLASS_FILE));			}		} else if (match.getElement() instanceof IFile) {			if (editorInput instanceof IFileEditorInput) {				return ((IFileEditorInput)editorInput).getFile().equals(match.getElement());			}		}		return false;	}