Skip to main content



      Home
Home » Eclipse Projects » Platform - User Assistance (UA) » Showing help after pressing a button
Showing help after pressing a button [message #474248] Mon, 25 August 2008 08:53 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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?
>
Previous Topic:Help contents error
Next Topic:Context sensitive help not working.
Goto Forum:
  


Current Time: Tue Jul 08 14:30:58 EDT 2025

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

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

Back to the top