fixed a bug in ModeContribution: looking for className was not stopped after it was found. added check and break on line 97

This commit is contained in:
fjenett
2012-04-14 16:09:06 +00:00
parent fe780ba93c
commit 481e765ac6

View File

@@ -92,8 +92,9 @@ public class ModeContribution extends InstalledContribution {
loader = new URLClassLoader(urlList);
for (int j = 0; j < archives.length; j++) {
className = ToolContribution.findClassInZipFile(folder.getName(),
archives[j]);
className = ToolContribution.findClassInZipFile( folder.getName(),
archives[j] );
if (className != null) break;
}
} catch (MalformedURLException e) {
// Maybe log this