Package org.eclipse.help.ui.internal.views

Examples of org.eclipse.help.ui.internal.views.HelpTray


    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);
      CheatSheetElement contentElement = CheatSheetRegistryReader.getInstance().findCheatSheet(id);
      helpPart.addPart(CheatSheetHelpPart.ID, new CheatSheetHelpPart(helpPart.getForm().getForm().getBody(), helpPart.getForm().getToolkit(), page.getToolBarManager(), contentElement, new DefaultStateManager()));
View Full Code Here


   *
   * @param dialog the dialog that was opened
   */
  private void dialogOpened(final TrayDialog dialog) {
    if (isActive()) {
      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);
      ICheatSheetStateManager trayManager = new TrayStateManager();
      preTrayManager = stateManager;
View Full Code Here

TOP

Related Classes of org.eclipse.help.ui.internal.views.HelpTray

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.