Showing help after pressing a button [message #474248] |
Mon, 25 August 2008 08:53  |
Eclipse User |
|
|
|
Hi,
I would like to show the help view, if the user click on a button.
Furthermore the help should show a certain help content, specified by a
contextID.
I used the following code, but it does not work!
IWorkbenchHelpSystem system = PlatformUI.getWorkbench().getHelpSystem();
system.displayDynamicHelp();
system.displayHelp(contextID); Does anybody have an idea, what's wrong
with the code?
|
|
|
Re: Showing help after pressing a button [message #474254 is a reply to message #474248] |
Tue, 26 August 2008 13:23  |
Eclipse User |
|
|
|
If your contextID is of type IContext then that code looks correct. If
nothing is happening it could be because the context is not being found.
In any case the best way to figure this out would be to run Eclipse in
the debugger.
Klaus Schaefers wrote:
> Hi,
> I would like to show the help view, if the user click on a button.
> Furthermore the help should show a certain help content, specified by a
> contextID.
> I used the following code, but it does not work!
>
> IWorkbenchHelpSystem system = PlatformUI.getWorkbench().getHelpSystem();
> system.displayDynamicHelp();
> system.displayHelp(contextID); Does anybody have an idea, what's wrong
> with the code?
>
|
|
|
Re: Showing help after pressing a button [message #619401 is a reply to message #474248] |
Tue, 26 August 2008 13:23  |
Eclipse User |
|
|
|
If your contextID is of type IContext then that code looks correct. If
nothing is happening it could be because the context is not being found.
In any case the best way to figure this out would be to run Eclipse in
the debugger.
Klaus Schaefers wrote:
> Hi,
> I would like to show the help view, if the user click on a button.
> Furthermore the help should show a certain help content, specified by a
> contextID.
> I used the following code, but it does not work!
>
> IWorkbenchHelpSystem system = PlatformUI.getWorkbench().getHelpSystem();
> system.displayDynamicHelp();
> system.displayHelp(contextID); Does anybody have an idea, what's wrong
> with the code?
>
|
|
|
Powered by
FUDForum. Page generated in 0.36582 seconds