|Re: How to assign help context id to HelpView? [message #743177 is a reply to message #742442]
||Fri, 21 October 2011 07:41
| Daniel KrÃ¼gler
Registered: July 2009
On 2011-10-20 15:51, Daniel Krügler wrote:|
> On 2011-10-20 15:22, Daniel Krügler wrote:
>> In our RCP program we use the Eclipse "Help View" to present the
>> context-sensitive help. But in contrast to other views this view seems
>> not to assign a help context id to its own view (Typically done via
>> Does there exist a way to assign a user-defined help context id to this
>> view in a non-intrisive way (I don't want to modify the source code or
>> bundle that provides this view)?
>> I can think of a possible way to realize that (untested), but would
>> prefer a simpler version, if possible: One could add a workbench part
>> listener and could listen to the activation of the Help View. When this
>> happens one could call setHelp to the control of this view.
It is quite probable, that this approach wouldn't work, because
effectively the HelpView does use exactly the same strategy.
>> Is someone aware whether the adapter pattern or any similar extension
>> mechanism can be used to realize this?
> I just realize that this could possibly be solved by providing an
> IContextProvider to this view via the adapter manager. I'm giving
> feedback, whether this approach works for us.
It seems that providing an IContextProvider via the adapter manager
resolves this issue. Alas, I still think that it would make sense that
the help view would also register a help context for it's view.
HTH & Greetings from Bremen,
Powered by FUDForum
. Page generated in 0.02368 seconds