1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-08 10:16:03 +02:00

minor code tidy

This commit is contained in:
Andrew Ferguson 2007-02-28 16:35:42 +00:00
parent 1865957898
commit cc4d4b2f00

View file

@ -70,7 +70,7 @@ public class GeneratePDOMApplication implements IApplication {
System.setProperty(IPDOMIndexerTask.TRACE_STATISTICS, Boolean.TRUE.toString()); System.setProperty(IPDOMIndexerTask.TRACE_STATISTICS, Boolean.TRUE.toString());
} }
IExportProjectProvider pprovider = getDescription(pproviderFQN); IExportProjectProvider pprovider = getExportProjectProvider(pproviderFQN);
if(pprovider==null) { if(pprovider==null) {
output(MessageFormat.format(Messages.GeneratePDOMApplication_CouldNotFindInitializer, new Object[]{pproviderFQN})); output(MessageFormat.format(Messages.GeneratePDOMApplication_CouldNotFindInitializer, new Object[]{pproviderFQN}));
return null; return null;
@ -93,13 +93,13 @@ public class GeneratePDOMApplication implements IApplication {
} }
/** /**
* Returns the IProjectForExportManager registed in the plug-in registry under the * Returns the IExportProjectProvider registed in the plug-in registry under the
* specified fully qualified class name * specified fully qualified class name
* May return null * May return null
* @param fqn * @param fqn
* @return * @return
*/ */
private static synchronized IExportProjectProvider getDescription(String fqn) { private static synchronized IExportProjectProvider getExportProjectProvider(String fqn) {
if(projectInitializers==null) { if(projectInitializers==null) {
projectInitializers = new HashMap(); projectInitializers = new HashMap();
IExtensionRegistry registry = Platform.getExtensionRegistry(); IExtensionRegistry registry = Platform.getExtensionRegistry();