Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Goldthorpe2011-08-16 17:00:04 +0000
committerChris Goldthorpe2011-08-16 17:00:04 +0000
commitff18b124bc96a31925f7218fa1936b1d276fd3f1 (patch)
tree481191117cbe69877e42624b442be5781f139c69
parentc4f3e018fc2f3c0db10a064cae0889dc255ef586 (diff)
downloadeclipse.platform.ua-ff18b124bc96a31925f7218fa1936b1d276fd3f1.tar.gz
eclipse.platform.ua-ff18b124bc96a31925f7218fa1936b1d276fd3f1.tar.xz
eclipse.platform.ua-ff18b124bc96a31925f7218fa1936b1d276fd3f1.zip
Bug 351272 - [Help][Index] Keyword Index: Blank line after parent nodes that link a help page
-rw-r--r--org.eclipse.help.ui/src/org/eclipse/help/ui/internal/views/IndexPart.java16
1 files changed, 12 insertions, 4 deletions
diff --git a/org.eclipse.help.ui/src/org/eclipse/help/ui/internal/views/IndexPart.java b/org.eclipse.help.ui/src/org/eclipse/help/ui/internal/views/IndexPart.java
index 203e66c87..0004d1db6 100644
--- a/org.eclipse.help.ui/src/org/eclipse/help/ui/internal/views/IndexPart.java
+++ b/org.eclipse.help.ui/src/org/eclipse/help/ui/internal/views/IndexPart.java
@@ -9,6 +9,7 @@
* Intel Corporation - initial API and implementation
* IBM Corporation - 163558 Dynamic content support for all UA
* IBM Corporation - Support for see elements
+ * Andreas Meissner - Fix Bug 351272
*******************************************************************************/
package org.eclipse.help.ui.internal.views;
@@ -212,10 +213,17 @@ public class IndexPart extends HyperlinkTreePart implements IHelpUIConstants {
return new Object[0];
}
- Object[] children = new Object[topics.length + subentries.length + sees.length];
- System.arraycopy(topics, 0, children, 0, topics.length);
- System.arraycopy(subentries, 0, children, topics.length, subentries.length);
- System.arraycopy(sees, 0, children, topics.length + subentries.length, sees.length);
+ Object[] children = null;
+ if (topics.length == 1) {
+ children = new Object[subentries.length + sees.length];
+ System.arraycopy(subentries, 0, children, 0, subentries.length);
+ System.arraycopy(sees, 0, children, subentries.length, sees.length);
+ } else {
+ children = new Object[topics.length + subentries.length + sees.length];
+ System.arraycopy(topics, 0, children, 0, topics.length);
+ System.arraycopy(subentries, 0, children, topics.length, subentries.length);
+ System.arraycopy(sees, 0, children, topics.length + subentries.length, sees.length);
+ }
return children;
}

Back to the top