Package org.eclipse.jface.dialogs

Examples of org.eclipse.jface.dialogs.TrayDialog


  public void run() {
    Shell shell = Display.getDefault().getActiveShell();
    Object data = shell.getData();
    // are we in a dialog that can show a cheat sheet?
    if (!shell.isFocusControl() && data instanceof TrayDialog) {
      TrayDialog dialog = (TrayDialog)data;
      HelpTray tray = (HelpTray)dialog.getTray();
      if (tray == null) {
        tray = new HelpTray();
        dialog.openTray(tray);
      }
      ReusableHelpPart helpPart = tray.getHelpPart();
      IHelpPartPage page = helpPart.createPage(CheatSheetHelpPart.ID, null, null);
      page.setVerticalSpacing(0);
      page.setHorizontalMargin(0);
View Full Code Here

TOP

Related Classes of org.eclipse.jface.dialogs.TrayDialog

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.