Community
Participate
Working Groups
Build Identifier: Eclipse 3.6.1 The doc path on top of the page is wrong when a page is referenced in two toc files. Reproducible: Always Steps to Reproduce: 1. Pick up Eclipse SDK 3.6.1 2. Create a non-java plugin project using the template Plug-in with sample help content 3. Click next button to open the Sample Help Table of Contents page 4. Check the check box Primary 5. Click finish to create the project 6. Open the toc file tocconcepts.xml and add the following lines to it <topic label="Main Topic 3"> <topic label="Sub Topic 3" href="html/tasks/subtopic2.html" /> </topic> 7. Launch a runtime and open the help page 8. Open the book Sample Table of Contents and expand the toc Concepts > Main Topic 3 9. Select page item Sub Topic 3 10. The Doc path on top of the page shows Sample Table of Contents > Tasks > Main Topic 2 which is wrong. It should be under Concepts.
Created attachment 183622 [details] Screen capture of the problem
Any update on this one?
This is not so easy to fix - it would require putting more information in the TOC which would have a small performance impact for all users. What is the circumstance which causes a document to be in more than one TOC - can you work around the problem by making one of the references be a link from a page rather than a link in the TOC file?
There are a couple of editors and language parsers in our product. The help contains a category for editors and another one for parsers. A help page on customizing a parser for a specific editor is shared under both categories. We can create a page which lists all the customization choices, but we do prefer that these topics are listed as the toc items since it's consistent to the rest part of the help.
Created attachment 202463 [details] Patch version 1 Here is the initial version of the patch. Note that this causes 3 Junit tests in TocFragmentServiceTest to fail because they are checking the result of calling the TocFragmentServlet and that result has now changed.
Created attachment 202557 [details] Patch for tests The tests were failing because the test was checking for the values of hrefs in topics. Those hrefs now have an addition parameter representing the position of the element in the toc tree.
Targeting 3.8M2
Created attachment 202826 [details] Patch as committed This patch has been committed to master.
This is now fixed.