New help icon in Eclipse 3.2 dialogs [message #305734] |
Tue, 11 July 2006 05:18  |
Eclipse User |
|
|
|
Hi,
Eclipse 3.2 introduced cool help icons in almost
each dialogs in the application. When I click them
they open help content on the right side of the dialog.
Is it some API, so I can use the same function in my
RCP application? If yes, provide please which objects
to use or if there is some documentation give links
here please :-)
Thanks for answers.
|
|
|
|
|
|
|
Re: New help icon in Eclipse 3.2 dialogs [message #305863 is a reply to message #305843] |
Fri, 14 July 2006 11:00  |
Eclipse User |
|
|
|
The javadoc for TrayDialog has the following:
Note: Trays are not supported on dialogs that use a custom layout on the
Shell by overriding Window#getLayout().
If you're doing anything like this, I would recommend wrapping your dialog
contents in a Composite and setting your layout on that instead of on the
Shell.
In addition, the help system places the restriction that at the time
context help is summoned, the dialog's Shell must be visible, and it must
either be resizable or satisfy a minimum height requirement (at the moment
it's 450 pixels but this is not API and should not be assumed as it can
change). That is, if your dialog is short and not resizable, help will
fall back to using an infopop.
Also, for sanity, make sure you specified in the help preference page that
you want dialog context help to show in the tray, not an infopop (tray is
the default).
Thanks,
Curt
|
|
|
Powered by
FUDForum. Page generated in 0.04529 seconds