Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org.eclipse.help/src/org/eclipse/help/internal/index/IndexAssembler.java3
-rw-r--r--org.eclipse.ua.tests/data/help/index/toc.xml1
2 files changed, 3 insertions, 1 deletions
diff --git a/org.eclipse.help/src/org/eclipse/help/internal/index/IndexAssembler.java b/org.eclipse.help/src/org/eclipse/help/internal/index/IndexAssembler.java
index 98dced092..21ad1b9ad 100644
--- a/org.eclipse.help/src/org/eclipse/help/internal/index/IndexAssembler.java
+++ b/org.eclipse.help/src/org/eclipse/help/internal/index/IndexAssembler.java
@@ -192,7 +192,6 @@ public class IndexAssembler {
node.setAttribute(Topic.ATTRIBUTE_HREF, HrefUtil.normalizeHref(pluginId, href));
}
}
- return HANDLED_CONTINUE;
}
return UNHANDLED;
}
@@ -221,6 +220,8 @@ public class IndexAssembler {
if (parent != null) {
parent.removeChild(node);
}
+ String msg = "Unable to look up label for help keyword index topic \"" + href + "\" with missing \"" + Topic.ATTRIBUTE_LABEL + "\" attribute (topic does not exist in table of contents; skipping)"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ HelpPlugin.logError(msg);
}
}
return UNHANDLED;
diff --git a/org.eclipse.ua.tests/data/help/index/toc.xml b/org.eclipse.ua.tests/data/help/index/toc.xml
index 509d53181..49d6f9ac8 100644
--- a/org.eclipse.ua.tests/data/help/index/toc.xml
+++ b/org.eclipse.ua.tests/data/help/index/toc.xml
@@ -6,6 +6,7 @@
<topic label="topic1.html" href="data/help/index/topic1.html">
<topic label="topic3.html" href="data/help/index/topic3.html"/>
</topic>
+ <topic label="topic4.html" href="data/help/index/topic4.html"/>
<topic label="topic2.html" href="data/help/index/topic2.html"/>
</topic>
</toc>

Back to the top