문제

Do someone know how to hide such help image from my custom wizard? alt text http://img268.imageshack.us/img268/6485/newprojectwt.png

setHelpAvailable(false) doesn't work, it hides "rectangular help button", not this image.

Thanks

도움이 되었습니까?

해결책

That does confirm this thread, developed by this thread:

  • There is a button with a question mark icon. This button is part of the WizardDialog, the dialog that is used to show a wizard to the end user.
    The button is used to show context help either in a dialog tray or by means of a help browser.

  • Then, there is a rectangular button with the text 'help'.
    This button is shown if the wizard offers help which is specified by calling setHelpAvailable(true). If you use this button your wizard page has to override the method performHelp.


The visibility of this context help button (with the question mark) is controlled by the static method TrayDialog.setDialogHelpAvailable().
If called with parameter false no JFace-dialog will show the help button. However, it can be make available individually in a dialog derived from TrayDialog by calling setHelpAvailable with parameter true.

The context help button is part of the TrayDialog.
If you do not use WizardDialog to display the wizard your dialog class has to be derived from TrayDialog.

 /**
  * Sets whether JFace dialogs that support help control should
  * show the control by default. If set to <code>false</code>,
  * help control can still be shown on a per-dialog basis.
  *
  * @param helpAvailable <code>true</code> to show the help
  * control, <code>false</code> otherwise.
  * @since 3.2
  */
 public static void setDialogHelpAvailable(boolean helpAvailable) {
     dialogHelpAvailable = helpAvailable;
 }

다른 팁

Just a thing: make sure you call the method before the button is created in TrayDialog.createButtonBar (which it's normally called from createContents).

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top