Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to add help to Wizard
How to add help to Wizard [message #648960] Sun, 16 January 2011 18:11 Go to next message
ash is currently offline ashFriend
Messages: 142
Registered: July 2010
Senior Member
Hi,

Can any once tell how to add help to wizard,
'If we setHelpAvailable() a help button is add to wizard button bar
i dont want that.... i want help wizard button in left most corner of the wizard . can any one how to add help every page of the wizard.....

Thanks
Ashok
Re: How to add help to Wizard [message #649006 is a reply to message #648960] Mon, 17 January 2011 08:42 Go to previous messageGo to next message
Daniel Krügler is currently offline Daniel KrüglerFriend
Messages: 853
Registered: July 2009
Senior Member
On 2011-01-16 19:11, ash wrote:
> Hi,
>
> Can any once tell how to add help to wizard,
> 'If we setHelpAvailable() a help button is add to wizard button bar
> i dont want that.... i want help wizard button in left most corner of
> the wizard . can any one how to add help every page of the wizard.....

Add the line

PlatformUI.getWorkbench().getHelpSystem().setHelp(composite,
"your.context.id");

to the createControl override of your WizardPage. Here, 'composite' is
your top-level created Composite within this method and
"your.context.id" is a specific help context ID you have assigned for
this page. Don't touch setHelpAvailable(), this is part of the internal
help context machinery.

HTH & Greetings from Bremen,

Daniel Krügler
Re: How to add help to Wizard [message #649172 is a reply to message #648960] Tue, 18 January 2011 01:03 Go to previous messageGo to next message
ash is currently offline ashFriend
Messages: 142
Registered: July 2010
Senior Member
How to get that help button displayed at leftmost corner of the wizard

[Updated on: Tue, 18 January 2011 01:03]

Report message to a moderator

Re: How to add help to Wizard [message #649197 is a reply to message #649172] Tue, 18 January 2011 07:15 Go to previous message
Daniel Krügler is currently offline Daniel KrüglerFriend
Messages: 853
Registered: July 2009
Senior Member
On 2011-01-18 02:03, ash wrote:
> How to get that help button displayed at leftmost corber of the wizard

If you want to activate it globally, call

TrayDialog.setDialogHelpAvailable(true)

e.g. in your WorkbenchAdvisor.initialize override. If you want to
control it more individually, call the non-static member function
setHelpAvailable early enough (e.g. in the constructor) of your dialog
class.

HTH & Greetings from Bremen,

Daniel Krügler
Previous Topic:Selection Problem after Perspective switching
Next Topic:[Resolved] Tabbed View : like eclipse manifest editor bottom layout
Goto Forum:
  


Current Time: Sun Dec 21 00:41:21 GMT 2014

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

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