diff options
Diffstat (limited to 'org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/toc/EnabledTopicTest.java')
-rw-r--r-- | org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/toc/EnabledTopicTest.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/toc/EnabledTopicTest.java b/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/toc/EnabledTopicTest.java index fc60f8a21..c49f8a089 100644 --- a/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/toc/EnabledTopicTest.java +++ b/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/toc/EnabledTopicTest.java @@ -37,23 +37,28 @@ public class EnabledTopicTest extends TestCase { this.isEnabled = isEnabled; } + @Override public ITopic[] getSubtopics() { return children.toArray(new ITopic[children.size()]); } + @Override public IUAElement[] getChildren() { return getSubtopics(); } + @Override public boolean isEnabled(IEvaluationContext context) { return isEnabled; } + @Override public String getHref() { return "http://www.eclipse.org"; } + @Override public String getLabel() { return label; } @@ -69,6 +74,7 @@ public class EnabledTopicTest extends TestCase { super(label, true); } + @Override public String getHref() { return null; } @@ -86,6 +92,7 @@ public class EnabledTopicTest extends TestCase { this.keyword = keyword; } + @Override public String getKeyword() { return keyword; } @@ -98,14 +105,17 @@ public class EnabledTopicTest extends TestCase { topics.add(topic); } + @Override public IIndexEntry[] getSubentries() { return subEntries.toArray(new IIndexEntry[subEntries.size()]); } + @Override public ITopic[] getTopics() { return topics.toArray(new ITopic[topics.size()]); } + @Override public synchronized IUAElement[] getChildren() { List<IUAElement> all = new ArrayList<IUAElement>(); all.addAll(subEntries); |