Ejemplo n.º 1
0
  /** @see org.eclipse.jface.window.Window#configureShell( org.eclipse.swt.widgets.Shell) */
  protected void configureShell(final Shell shell) {

    addStatusLine();
    addMenuBar();
    addToolBar(SWT.FLAT);

    ActionManager.registerSnipPad(this);

    super.configureShell(shell);
  }
Ejemplo n.º 2
0
  @Override
  protected void configureShell(Shell shell) {
    super.configureShell(shell);
    shell.setText("Traceview: " + mTraceName);

    InputStream in = getClass().getClassLoader().getResourceAsStream("icons/traceview-128.png");
    if (in != null) {
      shell.setImage(new Image(shell.getDisplay(), in));
    }

    shell.setBounds(100, 10, 1282, 900);
  }
Ejemplo n.º 3
0
  @Override
  protected void configureShell(Shell newShell) {
    super.configureShell(newShell);
    /*
     * Provide different resolutions for icons to get high quality rendering
     * wherever the OS needs large icons. For example, the ALT+TAB window on
     * certain systems uses a larger icon.
     */
    newShell.setImages(
        new Image[] {
          Images.WINDOW_ICON_SMALL,
          Images.WINDOW_ICON_LARGE,
          Images.WINDOW_ICON_XLARGE,
          Images.WINDOW_ICON_XXLARGE
        });

    newShell.setText(XdccBeeMessages.getString("Application_TITLE")); // $NON-NLS-1$
    newShell.setSize(getSettings().getMainWindowSize());
    if (getSettings().getMainWindowPosition().x != 0
        || getSettings().getMainWindowPosition().y != 0) {
      newShell.setLocation(getSettings().getMainWindowPosition());
    } else {
      centerShell(newShell);
    }
    newShell.addDisposeListener(
        new DisposeListener() {
          @Override
          public void widgetDisposed(DisposeEvent e) {
            new ActionQuit(false).run();
          }
        });
    if (newShell.getDisplay().getSystemTray() != null && !isMac()) { // TODO:
      // Tray
      // for
      // mac?!
      // shellIconified
      // doesnt
      // work
      // under
      // mac
      newShell.addShellListener(
          new ShellAdapter() {
            public void shellIconified(ShellEvent e) {
              window.getShell().setVisible(false);
            }
          });
    }
  }
 protected void configureShell(Shell shell) {
   super.configureShell(shell);
   shell.setText(getClass().getName());
   shell.setSize(new Point(1000, 600));
 }
Ejemplo n.º 5
0
 @Override
 public void run() {
   SimpleExpensesReport dlg = new SimpleExpensesReport(win.getShell());
   dlg.open();
 }
Ejemplo n.º 6
0
 /**
  * Configure the shell.
  *
  * @param newShell
  */
 @Override
 protected void configureShell(Shell newShell) {
   super.configureShell(newShell);
   newShell.setText(UIConstant.FRAME_NAME);
 }
Ejemplo n.º 7
0
 @Override
 protected void configureShell(Shell shell) {
   shell.setSize(400, 400);
   super.configureShell(shell);
 }