Project: Eclipse_Platform_UI
Bug 218302 [Help] WorkbenchHelpSystem.desiredHelpSystemId fails
Reported: 2008-02-08 09:05:05 | Status: verified fixed

Build ID: I20071213-1700 Eclipse 3.4 M4 The following method findElement(...) from the Runnable in method WorkbenchHelpSystem#initializePluggableHelpUI doesn't work as expected; it always returns the first element instead of the desired element. private IConfigurationElement findElement( String desiredHelpSystemId, IExtension[] extensions) { for (int i = 0; i < extensions.length; i++) { IExtension extension = extensions[i]; if (desiredHelpSystemId.equals(extension.getUniqueIdentifier())) { IConfigurationElement[] elements = extensions[0] .getConfigurationElements(); if (elements.length == 0) { // help UI present but mangled - act like there was // no help // UI return null; } return elements[0]; } } return null; } The "extensions[0]" should be replaced by "extension".

Files changed in fix:
bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/help/WorkbenchHelpSystem.java