Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Why do I not get an IContext object
Why do I not get an IContext object [message #316774] Mon, 18 June 2007 15:56
Eclipse UserFriend
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
Previous Topic:Focus Problems
Next Topic:Close all open resources of a project
Goto Forum:
  


Current Time: Sat Jul 27 16:11:49 GMT 2024

Powered by FUDForum. Page generated in 0.03563 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top