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/PackageExplorerContentProvider.java
if (element instanceof IJavaElement)
			type= ((IJavaElement)element).getElementType();
		return (!fIsFlatLayout && (type == IJavaElement.PACKAGE_FRAGMENT || type == IJavaElement.PACKAGE_FRAGMENT_ROOT || type == IJavaElement.JAVA_PROJECT));
	}		
	public Object[] getChildren(Object parentElement) {
		try {
			if (parentElement instanceof IJavaModel) 
				return concatenate(getJavaProjects((IJavaModel)parentElement), getNonJavaProjects((IJavaModel)parentElement));
			if (parentElement instanceof IProject) 
				return ((IProject)parentElement).members();
							
			if (parentElement instanceof IJavaProject) {
				IJavaProject project= (IJavaProject)parentElement;
				Object[] roots= getPackageFragmentRoots(project);
				return rootsAndContainers(project, roots);
			}
			if (parentElement instanceof ClassPathContainer)
				return getContainerPackageFragmentRoots((ClassPathContainer)parentElement);
				
		} catch (CoreException e) {
			return NO_CHILDREN;
		}
		
		if (needsToDelegate(parentElement)) {
			Object[] packageFragments= fPackageFragmentProvider.getChildren(parentElement);
			return getWithParentsResources(packageFragments, parentElement);
		} else
			return super.getChildren(parentElement);
	}
	private Object[] rootsAndContainers(IJavaProject project, Object[] roots) {