Examples of addDisposeListener()


Examples of org.eclipse.swt.widgets.Label.addDisposeListener()

    new Composite(JNC.getContentComposite(), SWT.NONE).setLayoutData(new GridData(0, 40));

    // page settings
    JNC.getNextButton().setVisible(false);
    JNC.getPreviousButton().addSelectionListener(this);
    lTitle.addDisposeListener(this);
  }


  // --------------- SelectionListener ---------------
View Full Code Here

Examples of org.eclipse.swt.widgets.Label.addDisposeListener()

          Label imageLabel = new Label(contributorComposite, SWT.NONE);
          ImageDescriptor imageDescriptor = contributor.getImage();
          final Image image = imageDescriptor == null ? null : imageDescriptor.createImage();
          if (image != null) {
            imageLabel.setImage(image);
            imageLabel.addDisposeListener(new DisposeListener() {
              public void widgetDisposed(DisposeEvent e) {
                image.dispose();
              }
            });
          }
View Full Code Here

Examples of org.eclipse.swt.widgets.Link.addDisposeListener()

          composite.layout();
        }
      }
    };
    combinedStore.addPropertyChangeListener(propertyChangeListener);
    link.addDisposeListener(new DisposeListener() {
      public void widgetDisposed(org.eclipse.swt.events.DisposeEvent e) {
        combinedStore.removePropertyChangeListener(propertyChangeListener);
      }
    });
  }
View Full Code Here

Examples of org.eclipse.swt.widgets.List.addDisposeListener()

          | GridData.GRAB_VERTICAL ); //
      data.horizontalSpan = 2;
      newTicketLink.setLayoutData( data );
    }
   
    list.addDisposeListener(new DisposeListener(){
      public void widgetDisposed(DisposeEvent e)
      {
        newTicketLink.dispose();
        newTicketLink = null;
      }
View Full Code Here

Examples of org.eclipse.swt.widgets.MenuItem.addDisposeListener()

      if (subMenu != null) {
        menuItem.setMenu(subMenu);
      }
    }

    menuItem.addDisposeListener(disposeListener);
    menuItem.addListener(SWT.Selection, selectionListener);

    // TODO Needs a way to be linked to a command.
    // if (action.getHelpListener() != null)
    // menuItem.addHelpListener(action.getHelpListener());
View Full Code Here

Examples of org.eclipse.swt.widgets.Sash.addDisposeListener()

        }
               

      });
     
      newSash.addDisposeListener(new DisposeListener() {
        /**
         * @see org.eclipse.swt.events.DisposeListener#widgetDisposed(DisposeEvent)
         */
        public void widgetDisposed(DisposeEvent e) {
          // Need to clear out the widget from current.
View Full Code Here

Examples of org.eclipse.swt.widgets.Shell.addDisposeListener()

     
      if (parentShell != null) {
        parentShell.setCursor(shell.getDisplay().getSystemCursor(SWT.CURSOR_WAIT));
      }
     
      shell.addDisposeListener(new DisposeListener() {
        public void widgetDisposed(DisposeEvent e) {
          try{
            if (parentShell != null) {
              parentShell.setCursor(e.display.getSystemCursor(SWT.CURSOR_ARROW));
            }
View Full Code Here

Examples of org.eclipse.swt.widgets.Shell.addDisposeListener()

      Shell firstShellWithStyle = Utils.findFirstShellWithStyle(SWT.APPLICATION_MODAL);
      if (firstShellWithStyle != null && firstShellWithStyle != this) {
        // ok, there's a window with application_modal set, which on OSX will mean
        // that if we open our window, it will be on top, but users won't be able
        // to interact with it.  So, wait until the modal window goes away..
        firstShellWithStyle.addDisposeListener(new DisposeListener() {
          public void widgetDisposed(DisposeEvent e) {
            // wait for dispose to complete, then run open again to check for
            // any new application modal shells to wait for
            Utils.execSWTThreadLater(0, new AERunnable() {
              public void runSupport() {
View Full Code Here

Examples of org.eclipse.swt.widgets.Shell.addDisposeListener()

        return view.getFullTitle();
      }
    };
    UIUpdaterSWT.getInstance().addUpdater(viewUpdater);

    shell.addDisposeListener(new DisposeListener() {
      public void widgetDisposed(DisposeEvent e) {
        UIUpdaterSWT.getInstance().removeUpdater(viewUpdater);
      }
    });
View Full Code Here

Examples of org.eclipse.swt.widgets.Shell.addDisposeListener()

          System.out.println("\t" + cats[i]);
        }
      }
    });
   
    shell.addDisposeListener(new DisposeListener() {
      public void widgetDisposed(DisposeEvent arg0) {
        if (dogImage != null) {
          dogImage.dispose();
          dogImage = null;
        }
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.