| 
| Why do I not get an IContext object [message #316774] | Mon, 18 June 2007 11:56 |  | 
| Eclipse User  |  |  |  |  | Originally posted by: hcurtis.xaware.com 
 I have two plug-ins.  One is a help plug-in (com.xaware.help) with all the
 context IDs defined and the referenced help URLs.  The following help
 plugin.xml entry defines
 the source of the context definitions:
 
 <extension point="org.eclipse.help.contexts">
 <contexts file="HelpContexts.xml" />
 </extension>
 
 
 Located in the help plug-in root is the HelpContext.xml file.  One entry for
 the context identifier used to illustrate the problem is shown here:
 
 <context id="ErrorHandling_context">
 <description>The example shows how to do error handling. </description>
 <topic label="Error Handling example" href="helpset/content/5443.htm"/>
 </context>
 
 The other plug-in is one of the custom UI views (com.xaware.designer) and
 its plugin.xml file has the following entry to reference to the help's
 plug-in context IDs.
 
 <extension point="org.eclipse.help.contexts">
 <contexts file="HelpContext.xml" plugin="com.xaware.help"/>
 
 </extension>
 
 
 
 However, when I request a IContext in my context provider (which is part of
 the com.xaware.designer plug-in, I get a null.  For example:
 
 
 
 public IContext getContext(Object target) {
 
 IContext context = null;
 
 ...
 
 context = HelpSystem.getContext("ErrorHandling_context");
 
 ...
 
 return context;
 
 }
 
 
 
 Am I using the wrong access method to acquire the IContext, or is there
 another issue I'm not satisfying?
 
 
 
 Regards,
 
 Bud Curtis
 |  |  |  | 
Powered by 
FUDForum. Page generated in 0.03268 seconds