Examples of ShellAdapter


Examples of org.eclipse.swt.events.ShellAdapter

  }

  private void registerListeners() {

    /* Add Shell sListener */
    getWindowConfigurer().getWindow().getShell().addShellListener(new ShellAdapter() {
      @Override
      public void shellIconified(ShellEvent e) {
        if (!fBlockIconifyEvent)
          onMinimize();
      }
View Full Code Here

Examples of org.eclipse.swt.events.ShellAdapter

    /* Apply Image */
    fTrayItem.setImage(OwlUI.getImage(fResources, OwlUI.TRAY_OWL));

    /* Minimize to Tray on Shell Iconify if set */
    fTrayShellListener = new ShellAdapter() {

      @Override
      public void shellIconified(ShellEvent e) {
        if (!fBlockIconifyEvent && (fMinimizeFromClose || fPreferences.getBoolean(DefaultPreferences.TRAY_ON_MINIMIZE)))
          moveToTray(shell);
View Full Code Here

Examples of org.eclipse.swt.events.ShellAdapter

  }

  private void registerListeners() {

    /* Add Shell sListener */
    getWindowConfigurer().getWindow().getShell().addShellListener(new ShellAdapter() {
      @Override
      public void shellIconified(ShellEvent e) {
        if (!fBlockIconifyEvent)
          onMinimize();
      }
View Full Code Here

Examples of org.eclipse.swt.events.ShellAdapter

    /* Apply Image */
    fTrayItem.setImage(OwlUI.getImage(fResources, OwlUI.TRAY_OWL));

    /* Minimize to Tray on Shell Iconify if set */
    fTrayShellListener = new ShellAdapter() {

      @Override
      public void shellIconified(ShellEvent e) {
        if (!fBlockIconifyEvent && (fMinimizeFromClose || fPreferences.getBoolean(DefaultPreferences.TRAY_ON_MINIMIZE)))
          moveToTray(shell);
View Full Code Here

Examples of org.eclipse.swt.events.ShellAdapter

  }

  private void registerListeners() {

    /* Add Shell sListener */
    getWindowConfigurer().getWindow().getShell().addShellListener(new ShellAdapter() {
      @Override
      public void shellIconified(ShellEvent e) {
        if (!fBlockIconifyEvent)
          onMinimize();
      }
View Full Code Here

Examples of org.eclipse.swt.events.ShellAdapter

    /* Apply Image */
    fTrayItem.setImage(OwlUI.getImage(fResources, OwlUI.TRAY_OWL));

    /* Minimize to Tray on Shell Iconify if set */
    fTrayShellListener = new ShellAdapter() {

      @Override
      public void shellIconified(ShellEvent e) {
        if (!fBlockIconifyEvent && (fMinimizeFromClose || fPreferences.getBoolean(DefaultPreferences.TRAY_ON_MINIMIZE)))
          moveToTray(shell);
View Full Code Here

Examples of org.eclipse.swt.events.ShellAdapter

    dateFormat = SimpleDateFormat.getTimeInstance();
    shell = new Shell(gui.getDisplay(), SWT.RESIZE | SWT.TITLE);
    GridLayout gridLayout = new GridLayout();
    gridLayout.numColumns = 3;
    shell.setLayout(gridLayout);
    shell.addShellListener(new ShellAdapter() {
      public void shellClosed(ShellEvent e) {
      }
    });
    shell.setText(Messages.getString("PortMonitor.title")); //$NON-NLS-1$
    shell.setImage(gui.loadImage(SWTSystemTrayGUI.class, "/images/frame-agent.png")); //$NON-NLS-1$
View Full Code Here

Examples of org.eclipse.swt.events.ShellAdapter

      // Create the shell
      shell = new Shell(gui.getDisplay(), SWT.RESIZE | SWT.TITLE);
      GridLayout gridLayout = new GridLayout();
      gridLayout.numColumns = 3;
      shell.setLayout(gridLayout);
      shell.addShellListener(new ShellAdapter() {
        public void shellClosed(ShellEvent e) {
        }
      });
      shell.setText(Messages.getString("ConsoleOutputStream.title")); //$NON-NLS-1$
      shell.setImage(gui.loadImage(SWTSystemTrayGUI.class, "/images/frame-agent.png")); //$NON-NLS-1$
View Full Code Here

Examples of org.eclipse.swt.events.ShellAdapter

        Options.saveProperties();
      }
    });
    submenuItemInfo.setText("Reset Dialog");
    sShell.setMenuBar(menuBar);
    sShell.addShellListener(new ShellAdapter() {
      public void shellClosed(ShellEvent e) {
        e.doit = container.closeAll();
        setSaveStatus();
        Options.saveWindow(sShell, "editor");
        listener.saveOptions();
View Full Code Here

Examples of org.eclipse.swt.events.ShellAdapter

  }
 
  public void showXMLEditor() {
   
    shell = new Shell(MainWindow.getSShell(), SWT.CLOSE | SWT.TITLE | SWT.APPLICATION_MODAL | SWT.BORDER);
    shell.addShellListener(new ShellAdapter() {
      public void shellClosed(final ShellEvent e) {
        close();
        e.doit = shell.isDisposed();
      }
    });
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.