Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 12:53 Go to next message
Klaus Schaefers is currently offline Klaus SchaefersFriend
Messages: 24
Registered: July 2009
Junior Member
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 17:23 Go to previous message
Chris Goldthorpe is currently offline Chris GoldthorpeFriend
Messages: 815
Registered: July 2009
Senior Member
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 17:23 Go to previous message
Chris Goldthorpe is currently offline Chris GoldthorpeFriend
Messages: 815
Registered: July 2009
Senior Member
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 Apr 23 09:01:00 GMT 2024

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

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

Back to the top