| Summary: | [Help][Context]Qualifying a context id to refer to a context in another plugin is not working | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Ruth Stento <ruth> |
| Component: | User Assistance | Assignee: | platform-ua-inbox <platform-ua-inbox> |
| Status: | RESOLVED WORKSFORME | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | cgold, ruth |
| Version: | 4.1 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows Server 2003 | ||
| Whiteboard: | |||
|
Description
Ruth Stento
You need to do the following:
1. In plugin.xml for the bundle where the context is declares use the "plugin" attribute to indicate that any contexts declared refer to another plug-in.
<extension
point="org.eclipse.help.contexts">
<contexts
file="contexts.xml"
plugin="org.eclipse.ui.navigator">
</contexts>
</extension>
2. In the contexts.xml file do not qualify the context id.
<context id="navigator.common_navigator">
I did not notice your question on the Platform - User Assistance Forum. I may have overlooked it.
(In reply to comment #1) > You need to do the following: > > 1. In plugin.xml for the bundle where the context is declares use the "plugin" > attribute to indicate that any contexts declared refer to another plug-in. > > <extension > point="org.eclipse.help.contexts"> > <contexts > file="contexts.xml" > plugin="org.eclipse.ui.navigator"> > </contexts> > </extension> > > 2. In the contexts.xml file do not qualify the context id. > > <context id="navigator.common_navigator"> > > I did not notice your question on the Platform - User Assistance Forum. I may > have overlooked it. This doesn't seem to be working. I have my own contexts file, so this would mean I would need to create two separate contexts files. I did, declared them like this in plugin.xml: <extension point="org.eclipse.help.contexts"> <contexts file="contexts.xml" plugin="com.progress.dataxtend.si.help" /> <contexts file="ext_contexts.xml" plugin="org.eclipse.ui.navigator" /> </extension> Then, I created ext_contexts.xml and put this context in it: <context id="org.eclipse.ui.navigator.common_navigator"> <description>DataXtend Projects in the Project Explorer view</description> <topic label="DataXtend Projects in the Project Explorer view" href="/com.progress.dataxtend.si.help/GettingStarted/WorkbenchTour.12.03.html" /> </context> The F1 help still continues to show only the Eclipse-provided help links in the top of the window. Mine does show in the dynamic help pane. Any ideas? (In reply to comment #2) > (In reply to comment #1) > > You need to do the following: > > > > 1. In plugin.xml for the bundle where the context is declares use the "plugin" > > attribute to indicate that any contexts declared refer to another plug-in. > > > > <extension > > point="org.eclipse.help.contexts"> > > <contexts > > file="contexts.xml" > > plugin="org.eclipse.ui.navigator"> > > </contexts> > > </extension> > > > > 2. In the contexts.xml file do not qualify the context id. > > > > <context id="navigator.common_navigator"> > > > > I did not notice your question on the Platform - User Assistance Forum. I may > > have overlooked it. > > > This doesn't seem to be working. I have my own contexts file, so this would > mean I would need to create two separate contexts files. I did, declared them > like this in plugin.xml: > > <extension point="org.eclipse.help.contexts"> > <contexts file="contexts.xml" plugin="com.progress.dataxtend.si.help" /> > <contexts file="ext_contexts.xml" plugin="org.eclipse.ui.navigator" /> > </extension> > > Then, I created ext_contexts.xml and put this context in it: > > <context id="org.eclipse.ui.navigator.common_navigator"> > <description>DataXtend Projects in the Project Explorer view</description> > <topic label="DataXtend Projects in the Project Explorer view" > href="/com.progress.dataxtend.si.help/GettingStarted/WorkbenchTour.12.03.html" > /> > </context> > > The F1 help still continues to show only the Eclipse-provided help links in the > top of the window. Mine does show in the dynamic help pane. Any ideas? Sorry, didn't show the whole ext_contexts.xml: <?xml version="1.0" encoding="utf-8"?> <?NLS TYPE="org.eclipse.help.contexts"?> <contexts xmlns="urn:Eclipse-Contexts-Schema"> <context id="org.eclipse.ui.navigator.common_navigator"> <description>DataXtend Projects in the Project Explorer view</description> <topic label="DataXtend Projects in the Project Explorer view" href="/com.progress.dataxtend.si.help/GettingStarted/WorkbenchTour.12.03.html" /> </context> </contexts> Can you change the first line of ext_contexts.xml to this? <context id="common_navigator"> (In reply to comment #4) > Can you change the first line of ext_contexts.xml to this? > > <context id="common_navigator"> Yay! that worked. And previously, I had tried navigator.common_navigator as you suggested originally. I'm glad it's working now. I'll close the bug. |