Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 319423

Summary: [Help] org.eclipse.help/HELP_DATA hidden will not remove non-top-level contents
Product: [Eclipse Project] Platform Reporter: Jeff Nevicosi <nevicosi>
Component: User AssistanceAssignee: platform-ua-inbox <platform-ua-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: major    
Priority: P3 CC: cgold, margolis
Version: 3.6   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard: stalebug

Description Jeff Nevicosi CLA 2010-07-09 14:34:33 EDT
Build ID:  I20100608-0911

1) Create root-level help contents with a format like:

 <toc label="Eclipse documentation">

 <topic label="Workbench basics">
	  <link toc="../org.eclipse.platform.doc.user/toc.xml" /> 
 	<enablement>
 	<with variable="platform">
  	<test property="org.eclipse.core.runtime.isBundleInstalled" args="org.eclipse.platform.doc.user" /> 
  	</with>
  	</enablement>
  </topic>
  
	<topic label="JDT plug-in developer guide">
		<link toc="../org.eclipse.jdt.doc.isv/toc.xml" /> 
	</topic>

</toc>

2) In product plugin's help data, try to remove some of the sublevel contents:

<extensions>
	<tocOrder>
		<toc id="/my.product.plugin/eclipse_doc.xml"/>
	</tocOrder>
	<hidden>
	    <toc id="/org.eclipse.jdt.doc.isv/toc.xml"/>
	</hidden>

</extensions>

"Eclipse Documentation" book still contains the 2 declared subtopics.

Expected result:

"/org.eclipse.jdt.doc.isv/toc.xml" is removed, even though it is not a top-level object.
Comment 1 Ben Margolis CLA 2012-06-02 21:53:55 EDT
the solution might be to ensure that the top of the helpData.xml file has this entry, including utf-8:

<?xml version="1.0" encoding="utf-8" ?>

am not yet sure; but here is the source of the idea:


http://www.eclipse.org/forums/index.php/mv/tree/244546/#page_top
Comment 2 Ben Margolis CLA 2012-06-06 11:08:31 EDT
did not work.  bummer.
Comment 3 Lars Vogel CLA 2019-11-14 03:16:50 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

If the bug is still relevant, please remove the "stalebug" whiteboard tag.