}
@Override
public ImageDescriptor getImageDescriptor(Object object) {
try {
IFacetedProject facetedProject = ProjectFacetsManager.create(project);
if (facetedProject != null && facetedProject.hasProjectFacet(IJ2EEFacetConstants.ENTERPRISE_APPLICATION_FACET)) {
return WTPResourcesImages.APP_RESOURCES;
}
} catch(CoreException ex) {
LOG.error(Messages.WTPResourcesNode_Cant_Retrieve_Project_Facet,ex);
}