case IJavaElement.LOCAL_VARIABLE: return JavaPluginImages.DESC_OBJS_LOCAL_VARIABLE;
	public ImageDescriptor getBaseImageDescriptor(IJavaElement element, int renderFlags) {		try {						switch (element.getElementType()) {					case IJavaElement.INITIALIZER:					return JavaPluginImages.DESC_MISC_PRIVATE; // 23479				case IJavaElement.METHOD:					IMember member= (IMember) element;					return getMethodImageDescriptor(member.getDeclaringType().isInterface(), member.getFlags());												case IJavaElement.FIELD:					IField field= (IField) element;					return getFieldImageDescriptor(field.getDeclaringType().isInterface(), field.getFlags());													case IJavaElement.PACKAGE_DECLARATION:					return JavaPluginImages.DESC_OBJS_PACKDECL;								case IJavaElement.IMPORT_DECLARATION:					return JavaPluginImages.DESC_OBJS_IMPDECL;									case IJavaElement.IMPORT_CONTAINER:					return JavaPluginImages.DESC_OBJS_IMPCONT;								case IJavaElement.TYPE: {					IType type= (IType) element;					boolean isInterface= type.isInterface();										if (useLightIcons(renderFlags)) {						return isInterface ? JavaPluginImages.DESC_OBJS_INTERFACEALT : JavaPluginImages.DESC_OBJS_CLASSALT;					}					boolean isInner= type.getDeclaringType() != null;					return getTypeImageDescriptor(isInterface, isInner, type.getFlags());				}				case IJavaElement.PACKAGE_FRAGMENT_ROOT: {					IPackageFragmentRoot root= (IPackageFragmentRoot) element;					if (root.isArchive()) {						IPath attach= root.getSourceAttachmentPath();						if (root.isExternal()) {							if (attach == null) {								return JavaPluginImages.DESC_OBJS_EXTJAR;							} else {								return JavaPluginImages.DESC_OBJS_EXTJAR_WSRC;							}						} else {							if (attach == null) {								return JavaPluginImages.DESC_OBJS_JAR;							} else {								return JavaPluginImages.DESC_OBJS_JAR_WSRC;							}						}												} else {						return JavaPluginImages.DESC_OBJS_PACKFRAG_ROOT;					}				}								case IJavaElement.PACKAGE_FRAGMENT:					return getPackageFragmentIcon(element, renderFlags);									case IJavaElement.COMPILATION_UNIT:					return JavaPluginImages.DESC_OBJS_CUNIT;									case IJavaElement.CLASS_FILE:					/* this is too expensive for large packages					try {						IClassFile cfile= (IClassFile)element;						if (cfile.isClass())							return JavaPluginImages.IMG_OBJS_CFILECLASS;						return JavaPluginImages.IMG_OBJS_CFILEINT;					} catch(JavaModelException e) {						// fall through;					}*/					return JavaPluginImages.DESC_OBJS_CFILE;									case IJavaElement.JAVA_PROJECT: 					IJavaProject jp= (IJavaProject)element;					if (jp.getProject().isOpen()) {						IProject project= jp.getProject();						IWorkbenchAdapter adapter= (IWorkbenchAdapter)project.getAdapter(IWorkbenchAdapter.class);						if (adapter != null) {							ImageDescriptor result= adapter.getImageDescriptor(project);							if (result != null)								return result;						}						return DESC_OBJ_PROJECT;					}					return DESC_OBJ_PROJECT_CLOSED;									case IJavaElement.JAVA_MODEL:					return JavaPluginImages.DESC_OBJS_JAVA_MODEL;			}						Assert.isTrue(false, JavaUIMessages.getString("JavaImageLabelprovider.assert.wrongImage")); //$NON-NLS-1$			return null; //$NON-NLS-1$				} catch (JavaModelException e) {			if (e.isDoesNotExist())				return JavaPluginImages.DESC_OBJS_UNKNOWN;			JavaPlugin.log(e);			return JavaPluginImages.DESC_OBJS_GHOST;		}	}