if (!pack.hasChildren() && pack.getNonJavaResources().length > 0) { return RESOURCEPACKAGES; }
	public int category(Object element) {		if (element instanceof IJavaElement) {			try {				IJavaElement je= (IJavaElement) element;				switch (je.getElementType()) {					case IJavaElement.METHOD: {							IMethod method= (IMethod) je;							if (method.isConstructor()) {								return MEMBERSOFFSET + MembersOrderPreferencePage.getConstructorOffset();							}							int flags= method.getFlags();							return MEMBERSOFFSET + MembersOrderPreferencePage.getMethodOffset(Flags.isStatic(flags));						}					case IJavaElement.FIELD: {							int flags= ((IField) je).getFlags();							return MEMBERSOFFSET + MembersOrderPreferencePage.getFieldOffset(Flags.isStatic(flags));						}					case IJavaElement.INITIALIZER: {							int flags= ((IInitializer) je).getFlags();							return MEMBERSOFFSET + MembersOrderPreferencePage.getInitOffset(Flags.isStatic(flags));						}					case IJavaElement.TYPE :						return MEMBERSOFFSET + MembersOrderPreferencePage.getTypeOffset();					case IJavaElement.PACKAGE_DECLARATION:						return PACKAGE_DECL;					case IJavaElement.IMPORT_CONTAINER:						return IMPORT_CONTAINER;					case IJavaElement.IMPORT_DECLARATION:						return IMPORT_DECLARATION;					case IJavaElement.PACKAGE_FRAGMENT:						IPackageFragment pack= (IPackageFragment) je;						if (pack.getParent().getUnderlyingResource() instanceof IProject) {							return PACKAGEFRAGMENTROOTS;						}						if (!pack.hasChildren() && pack.getNonJavaResources().length > 0) {							return RESOURCEPACKAGES;						}						return PACKAGEFRAGMENT;					case IJavaElement.PACKAGE_FRAGMENT_ROOT:						return PACKAGEFRAGMENTROOTS;					case IJavaElement.JAVA_PROJECT:						return JAVAPROJECTS;					case IJavaElement.CLASS_FILE:						return CLASSFILES;					case IJavaElement.COMPILATION_UNIT:						return COMPILATIONUNITS;				}			} catch (JavaModelException e) {				JavaPlugin.log(e);			}			return JAVAELEMENTS;		} else if (element instanceof IFile) {			return RESOURCES;		} else if (element instanceof IContainer) {			return RESOURCEFOLDERS;		} else if (element instanceof IStorage) {			return STORAGE;		}		return OTHERS;	}