From 5519734d70494c3f7c798fd2cd55d89feb0702c7 Mon Sep 17 00:00:00 2001 From: Chris Goldthorpe Date: Fri, 14 Oct 2011 16:10:16 -0700 Subject: Bug 360983 - [Help] isEnabled is not called for children of ITocs which are created by a toc provider --- org.eclipse.help/src/org/eclipse/help/internal/UAElement.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'org.eclipse.help') 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