Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Goldthorpe2011-10-14 23:10:16 +0000
committerChris Goldthorpe2011-10-14 23:12:29 +0000
commit5519734d70494c3f7c798fd2cd55d89feb0702c7 (patch)
treefbe17a7430d5bd77234dacf7d51f8bba3204e6bc /org.eclipse.help
parent33b7a3aa349fe40d99263598f1d913f5daef429c (diff)
downloadeclipse.platform.ua-5519734d70494c3f7c798fd2cd55d89feb0702c7.tar.gz
eclipse.platform.ua-5519734d70494c3f7c798fd2cd55d89feb0702c7.tar.xz
eclipse.platform.ua-5519734d70494c3f7c798fd2cd55d89feb0702c7.zip
Bug 360983 - [Help] isEnabled is not called for children of ITocs whichv20111017
are created by a toc provider
Diffstat (limited to 'org.eclipse.help')
-rw-r--r--org.eclipse.help/src/org/eclipse/help/internal/UAElement.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/org.eclipse.help/src/org/eclipse/help/internal/UAElement.java b/org.eclipse.help/src/org/eclipse/help/internal/UAElement.java
index 0e69cd9da..672298d53 100644
--- a/org.eclipse.help/src/org/eclipse/help/internal/UAElement.java
+++ b/org.eclipse.help/src/org/eclipse/help/internal/UAElement.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2007, 2010 IBM Corporation and others.
+ * Copyright (c) 2007, 2011 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -141,6 +141,9 @@ public class UAElement implements IUAElement {
}
public void appendChildren(IUAElement[] children) {
+ if (this.children == null && children.length > 0) {
+ this.children = new ArrayList(4);
+ }
for (int i=0;i<children.length;i++) {
appendChild(children[i] instanceof UAElement ? (UAElement)children[i] : UAElementFactory.newElement(children[i]));
}

Back to the top