Bug 63769 Endless loop after Show in Package Explorer
there are situations when you run in an endless loop in show in package explorer when the action is attempting to reveal an element.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerPart.java
case IJavaElement.PACKAGE_DECLARATION:
    		case IJavaElement.IMPORT_CONTAINER:
    		case IJavaElement.TYPE:
    		case IJavaElement.METHOD:
    		case IJavaElement.FIELD:
    		case IJavaElement.INITIALIZER:
    			
    			element2= (IJavaElement)element2.getOpenable();
    			break;
    		case IJavaElement.JAVA_MODEL:
    			element2= null;
    			break;
    	}
    	if (element2.getElementType() == IJavaElement.COMPILATION_UNIT) {
    		element2= JavaModelUtil.toOriginal((ICompilationUnit)element2);
    	}
    	return element2;
    }
    private boolean revealAndVerify(Object element) {
    	if (element == null)
    		return false;
    	selectReveal(new StructuredSelection(element));
    	IElementComparer comparer= getTreeViewer().getComparer();
    	Object selected= ((IStructuredSelection)getSite().getSelectionProvider().getSelection()).getFirstElement();
    	if (comparer != null ? comparer.equals(element, selected) : element.equals(selected))
    		return true;
    	return false;
    }
}