commit | b09070bf2fb50f3c1290c813e6db303bfcdc238c | [log] [tgz] |
---|---|---|
author | Dani Megert <Daniel_Megert@ch.ibm.com> | Mon May 20 09:58:10 2019 +0200 |
committer | Dani Megert <Daniel_Megert@ch.ibm.com> | Mon May 20 10:05:26 2019 +0200 |
tree | e06e0172dd9163f4c0e79735a4d6eca2585e26a4 | |
parent | 766c2fa9c223057a220a96dbfc51e5bffd60fc75 [diff] |
Fixed wrong code part 2
diff --git a/examples/org.eclipse.ui.examples.readmetool/Eclipse UI Examples Readme Tool/org/eclipse/ui/examples/readmetool/ReadmeModelFactory.java b/examples/org.eclipse.ui.examples.readmetool/Eclipse UI Examples Readme Tool/org/eclipse/ui/examples/readmetool/ReadmeModelFactory.java index e061b3a..0a00307 100644 --- a/examples/org.eclipse.ui.examples.readmetool/Eclipse UI Examples Readme Tool/org/eclipse/ui/examples/readmetool/ReadmeModelFactory.java +++ b/examples/org.eclipse.ui.examples.readmetool/Eclipse UI Examples Readme Tool/org/eclipse/ui/examples/readmetool/ReadmeModelFactory.java
@@ -145,12 +145,14 @@ // as a drop-down list. For the sake // of simplicity, we will pick the last extension only. if (i == extensions.length - 1) { - IConfigurationElement[] configElements = currentExtension.getConfigurationElements(); - for (IConfigurationElement configElement : configElements) { - if (configElement.getName() + IConfigurationElement[] configElements = currentExtension + .getConfigurationElements(); + for (int j = 0; j < configElements.length; j++) { + IConfigurationElement config = configElements[i]; + if (config.getName() .equals(IReadmeConstants.TAG_PARSER)) { // process the first 'parser' element and stop - processParserElement(configElement); + processParserElement(config); break; } }