Bug 30700 New Project/package/class not selected in package explorer
I20030129 - create one of the java elements using the wizard. observe: the new element is not selected in the package explorer. The reason is that we post resource deltas asynchronously.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerPart.java
}
					} else
						list.add(object);
				}
				return list.toArray();
			}
			
			
			private Object filter(Object object, Object parent, ViewerFilter[] filters) {
				for (int i = 0; i < filters.length; i++) {
					ViewerFilter filter = filters[i];
					if (!filter.select(fViewer, parent, object))
						return null;
				}
				return object;
			}
		
			/* Checks if a filtered object in essential (ie. is a parent that
			 * should not be removed).
			 */ 
			private boolean isEssential(Object object) {
				try {
					if (!isFlatLayout() && object instanceof IPackageFragment) {
						IPackageFragment fragment = (IPackageFragment) object;
						return !fragment.isDefaultPackage() && fragment.hasSubpackages();
					}
				} catch (JavaModelException e) {
					JavaPlugin.log(e);
				}
				return false;