Bug 46393 [RCP] Lost nature icon on project
N20031111 start fresh workspace, create a Java project ==> missing nature icon "J"
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/registry/CapabilityRegistryReader.java
currentCapability.addHandleUI(capabilityId);		
		return true;	
	}
	
	/**
	 * Reads perspectiveChoice elements. These elements contain the ids of
	 * perspectives.
	 */
	private boolean readPerspectiveChoice(IConfigurationElement element) {
		String perspId = element.getAttribute(ATT_ID);
		
		if (perspId == null) {
			logMissingAttribute(element, ATT_ID);
		}
		
		if (currentCapability != null)
			currentCapability.addPerspectiveChoice(perspId);		
		return true;	
	}
	
	/**
	 * Reads project capabilities and capability categories from the provided
	 * plugin registry and stores them in the provided capability registry.
	 */
	public void read(IPluginRegistry registry, CapabilityRegistry out) {
		capabilityRegistry = out;
		readRegistry(registry, PlatformUI.PLUGIN_ID, IDEWorkbenchPlugin.PL_CAPABILITIES);
	}
}