Bug 13243 [Browsing] package remains if all types are deleted
1) open Java Browsing Perspective 2) select a package 3) select all types of this package 4) delete all types, agree to also delete the compilation units -> package still in the package list 5) deselect and reselect the project -> package is no longer in package list
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingContentProvider.java
for (int i= 0; i < sourceRefs.length; i++)
			result= concatenate(result, removeImportAndPackageDeclarations(getChildren(sourceRefs[i])));
		return concatenate(result, fragment.getNonJavaResources());
	}
	private Object[] removeImportAndPackageDeclarations(Object[] members) {
		ArrayList tempResult= new ArrayList(members.length);
		for (int i= 0; i < members.length; i++)
			if (!(members[i] instanceof IImportContainer) && !(members[i] instanceof IPackageDeclaration))
				tempResult.add(members[i]);
		return tempResult.toArray();
	}
	private Object[] getChildren(IType type) throws JavaModelException{
		IParent parent;
		if (type.isBinary())
			parent= type.getClassFile();
		else {
			parent= type.getCompilationUnit();
			if (getProvideWorkingCopy()) {
				IWorkingCopy wc= EditorUtility.getWorkingCopy((ICompilationUnit)parent);
				if (wc != null) {
					parent= (IParent)wc;
					IMember wcType= EditorUtility.getWorkingCopy(type);
					if (wcType != null)
						type= (IType)wcType;
				}
			}
		}
		if (type.getDeclaringType() != null)
			return type.getChildren();