Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » TrayDialog insists on showing Help on tray
TrayDialog insists on showing Help on tray [message #978100] Fri, 09 November 2012 21:07 Go to next message
Hernan Gonzalez is currently offline Hernan GonzalezFriend
Messages: 188
Registered: October 2010
Location: Buenos Aires, Argentina
Senior Member
I have a Dialog that extends
ElementTreeSelectionDialog -> SelectionStatusDialog -> SelectionDialog -> TrayDialog

I don't want it to show Help, so I set bd.setHelpAvailable(false) at construction (and
also override isHelpAvailable() - it's not very clear which of these is neeeded). This removed the icon with the question mark from the Dialog. Ok.

However, the dialog still reacts to F1, it still displays the Help in the lateral tray. Is this the expected behaviour? If so, is there a way to really tell Eclipse that -really- there is no help available. I tried to override openTray() , but this results in a NPE.

I know the simple answer: "don't extend TrayDialog if you don't want a tray". But that would be annoying for me, because I'm relying on functions provided by the other dialog classes on the hierarchy.

[Updated on: Fri, 09 November 2012 21:07]

Report message to a moderator

Re: TrayDialog insists on showing Help on tray [message #989031 is a reply to message #978100] Tue, 04 December 2012 11:01 Go to previous message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
On 09.11.2012 22:07, Hernan Gonzalez wrote:
> I have a Dialog that extends ElementTreeSelectionDialog ->
> SelectionStatusDialog -> SelectionDialog -> TrayDialog
>
> I don't want it to show Help, so I set bd.setHelpAvailable(false) at
> construction (and also override isHelpAvailable() - it's not very
> clear which of these is neeeded). This removed the icon with the
> question mark from the Dialog. Ok.
> However, the dialog still reacts to F1, it still displays the Help in
> the lateral tray. Is this the expected behaviour?
Yes, that F1 still works is expected. I guess you have your dialog
embedded somewhere and that helps shows up. You could try to override it
by calling
PlatformUI.getWorkbench().getHelpSystem().setHelp(*).

Dani
> If so, is there a way to really tell Eclipse that -really- there is no
> help available. I tried to override openTray() , but this results in a
> NPE.
>
> I know the simple answer: "don't extend TrayDialog if you don't want a
> tray". But that would be annoying for me, because I'm relying on
> functions provided by the other dialog classes on the hierarchy.
Previous Topic:e4 communication with a Virgo server
Next Topic:How to prevent key binding execution repetition
Goto Forum:
  


Current Time: Fri Apr 26 23:30:36 GMT 2024

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

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

Back to the top