fMapToCompoundElement= new HashMap();
fMapToLogicalPackage.clear(); fMapToPackageFragments.clear();
	public Object[] getChildren(Object parentElement) {				if(parentElement instanceof IJavaElement){			IJavaElement element= (IJavaElement) parentElement;			int type= element.getElementType();						try {				switch (type) {					case IJavaElement.JAVA_PROJECT :						IJavaProject project= (IJavaProject) element;						IPackageFragment[] children= getPackageFragments(project.getPackageFragments());						if(isInCompoundState()) {							fMapToCompoundElement= new HashMap();							return createCompoundElements(children);							} else	return children;									case IJavaElement.PACKAGE_FRAGMENT_ROOT :						fMapToCompoundElement= new HashMap();						IPackageFragmentRoot root= (IPackageFragmentRoot) element;						return root.getChildren();											case IJavaElement.PACKAGE_FRAGMENT :						//no children in flat view						break;									default :						//do nothing, empty array returned				}			} catch (JavaModelException e) {				JavaPlugin.log(e);			}					}		return new Object[0];	}