Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCurtis D'Entremont2007-02-02 18:38:06 +0000
committerCurtis D'Entremont2007-02-02 18:38:06 +0000
commit262ce44cff2f1357a481691bb0c69c490eafe700 (patch)
tree1f9622ee7beeb19524d87240e629a4c4e7939fde /org.eclipse.help/src/org/eclipse/help/internal/index/Index.java
parentcc04d1747e8e01ee5fb59fd52275c5237716c364 (diff)
downloadeclipse.platform.ua-262ce44cff2f1357a481691bb0c69c490eafe700.tar.gz
eclipse.platform.ua-262ce44cff2f1357a481691bb0c69c490eafe700.tar.xz
eclipse.platform.ua-262ce44cff2f1357a481691bb0c69c490eafe700.zip
rework providers API to be less DOM-centric
Diffstat (limited to 'org.eclipse.help/src/org/eclipse/help/internal/index/Index.java')
-rw-r--r--org.eclipse.help/src/org/eclipse/help/internal/index/Index.java35
1 files changed, 13 insertions, 22 deletions
diff --git a/org.eclipse.help/src/org/eclipse/help/internal/index/Index.java b/org.eclipse.help/src/org/eclipse/help/internal/index/Index.java
index 9fb6b2fa9..9142e3b2d 100644
--- a/org.eclipse.help/src/org/eclipse/help/internal/index/Index.java
+++ b/org.eclipse.help/src/org/eclipse/help/internal/index/Index.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2006 Intel Corporation and others.
+ * Copyright (c) 2005, 2007 Intel 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
@@ -13,36 +13,27 @@ package org.eclipse.help.internal.index;
import org.eclipse.help.IIndex;
import org.eclipse.help.IIndexEntry;
-import org.eclipse.help.Node;
-import org.eclipse.help.internal.NodeAdapter;
+import org.eclipse.help.internal.UAElement;
+import org.w3c.dom.Element;
-/*
- * Adapts a "index" Node as an IIndex. All methods operate on the
- * underlying adapted Node.
- */
-public class Index extends NodeAdapter implements IIndex {
+public class Index extends UAElement implements IIndex {
public static final String NAME = "index"; //$NON-NLS-1$
- /*
- * Constructs a new index adapter for an empty index node.
- */
public Index() {
- super();
- setNodeName(NAME);
+ super(NAME);
}
- /*
- * Constructs a new index adapter for the given index node.
- */
- public Index(Node node) {
- super(node);
+ public Index(IIndex src) {
+ super(NAME, src);
+ appendChildren(src.getChildren());
}
- /* (non-Javadoc)
- * @see org.eclipse.help.IIndex#getEntries()
- */
+ public Index(Element src) {
+ super(src);
+ }
+
public IIndexEntry[] getEntries() {
- return (IndexEntry[])getChildNodes(IndexEntry.NAME, IndexEntry.class);
+ return (IIndexEntry[])getChildren(IIndexEntry.class);
}
}

Back to the top