1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-08 18:26:01 +02:00

Fix for 273272.

This commit is contained in:
Markus Schorn 2009-04-28 07:25:36 +00:00
parent 202474d90a
commit 7238d0fff7

View file

@ -846,13 +846,13 @@ public class CCorePlugin extends Plugin {
for (IConfigurationElement configElement : configElements) {
if (configElement.getName().equals("processList")) { //$NON-NLS-1$
String platform = configElement.getAttribute("platform"); //$NON-NLS-1$
if (platform == null ) { // first contrbutor found with not platform will be default.
if (platform == null ) { // first contributor found with not platform will be default.
if (defaultContributor == null) {
defaultContributor = configElement;
}
} else if (platform.equals(Platform.getOS())) {
// found explicit contributor for this platform.
return (IProcessList) configElements[0].createExecutableExtension("class"); //$NON-NLS-1$
return (IProcessList) configElement.createExecutableExtension("class"); //$NON-NLS-1$
}
}
}