for(String perspectiveType : registeredPerspectiveTypes) {
Perspective p = getPerspective(perspectiveType);
InputStream in = p.getClass().getResourceAsStream("perspective.xml");
//REVISIT: can a perspective have no perspective configuration file, eg, the runtime perspective?
if(in != null) {
PerspectiveConfigurationParser parser = new PerspectiveConfigurationParser(in);
List<ModuleEditorConfiguration> moduleEditors = parser.getModuleEditors();
moduleEditorConfigurations.put(perspectiveType, moduleEditors);
}
}
return moduleEditorConfigurations;