Examples of addListener()


Examples of org.eclipse.swt.widgets.Combo.addListener()

  skipYesButton.addListener( SWT.Selection, selectionListener);   skipNoButton.addListener( SWT.Selection, selectionListener);
  folYesButton.addListener( SWT.Selection, selectionListener);    folNoButton.addListener( SWT.Selection, selectionListener);
  keepYesButton.addListener( SWT.Selection, selectionListener);   keepNoButton.addListener( SWT.Selection, selectionListener);
  freshYesButton.addListener( SWT.Selection, selectionListener);   freshNoButton.addListener( SWT.Selection, selectionListener);
  spellYesButton.addListener( SWT.Selection, selectionListener);   spellNoButton.addListener( SWT.Selection, selectionListener);
  threadCombo.addListener( SWT.Selection, selectionListener);

  setControl(composite);

}
View Full Code Here

Examples of org.eclipse.swt.widgets.Composite.addListener()

        contextMenu.setVisible(true);
      }
    });
    presenceLabel.addListener(SWT.MouseDown, showMenuListener);
    presenceButton.addListener(SWT.MouseDown, showMenuListener);
    presenceComposite.addListener(SWT.MouseDown, showMenuListener);
    addAccount(account);
    layout(true);
    this.addListener(SWT.Dispose, RemoveListener.getRemoveListener(
        account.xmpp.ownPresenceChanged, ownPresenceChangedListener));
  }
View Full Code Here

Examples of org.eclipse.swt.widgets.Control.addListener()

    OwnerDrawListener listener = (OwnerDrawListener) control
        .getData(OWNER_DRAW_LABEL_PROVIDER_LISTENER);
    if (listener == null) {
      listener = new OwnerDrawListener(viewer);
      control.setData(OWNER_DRAW_LABEL_PROVIDER_LISTENER, listener);
      control.addListener(SWT.MeasureItem, listener);
      control.addListener(SWT.EraseItem, listener);
      control.addListener(SWT.PaintItem, listener);
    }
    return listener;
  }
View Full Code Here

Examples of org.eclipse.swt.widgets.DateTime.addListener()

        case ISearchValueType.DATE:
        case ISearchValueType.TIME:
        case ISearchValueType.DATETIME: {
          final Calendar cal = Calendar.getInstance();
          final DateTime datetime = new DateTime(inputField, SWT.DATE);
          datetime.addListener(SWT.Selection, new Listener() {
            public void handleEvent(Event event) {
              cal.set(Calendar.DATE, datetime.getDay());
              cal.set(Calendar.MONTH, datetime.getMonth());
              cal.set(Calendar.YEAR, datetime.getYear());
View Full Code Here

Examples of org.eclipse.swt.widgets.Display.addListener()

   
    OpenDocumentEventProcessor eProc = new OpenDocumentEventProcessor();
    String[] params = (String[]) args;
    eProc.add(params[params.length -1]);
    Display display = PlatformUI.createDisplay();
    display.addListener(SWT.OpenDocument, eProc);
    try{
     
      if(!handleWorkspace(display)){
        System.exit(0);
        return IApplication.EXIT_OK;
View Full Code Here

Examples of org.eclipse.swt.widgets.Group.addListener()

        contextMenu.setVisible(true);
      }
    });
    presenceLabel.addListener(SWT.MouseDown, showMenuListener);
    presenceButton.addListener(SWT.MouseDown, showMenuListener);
    presenceComposite.addListener(SWT.MouseDown, showMenuListener);
    addAccount(account);
    layout(true);
    this.addListener(SWT.Dispose, RemoveListener.getRemoveListener(
        account.xmpp.ownPresenceChanged, ownPresenceChangedListener));
  }
View Full Code Here

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

    final Label label = new Label(cMode, SWT.WRAP);
    gridData.horizontalSpan = 4;
    label.setLayoutData(gridData);
  text[0] = MessageText.getString("ConfigView.section.mode." + initsMode);
  label.setText(text[0]);
  label.addListener (SWT.Selection, new Listener () {
    public void handleEvent(Event event) {
      Utils.launch(event.text);
    }
  });
 
View Full Code Here

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

        Link link = new Link(commonPanel, SWT.NONE);
        link.setFont(font);
        link.setText(" - <a>visit homepage</a>");
        link.setToolTipText("You need just a sense of humor!");
        link.addListener (SWT.Selection, new Listener () {
            public void handleEvent(Event event) {
                handleUrlClick("http://andrei.gmxhome.de/bytecode");
            }
        });
View Full Code Here

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

      }
    }
    if(templateList.getItemCount() == 0) {
      ExceptionHandler.throwCoreException("templates.xml misses the required data!", null);
    }
    templateList.addListener(SWT.Selection, new Listener() {

      public void handleEvent(Event event) {
        selectedTemplate = templateList.getItem(templateList.getSelectionIndex()).trim();
        descriptionArea.setText(getTemplateDescription());
      }
View Full Code Here

Examples of org.eclipse.swt.widgets.Menu.addListener()

      if (flags == SWT.CASCADE) {
        // just create a proxy for now, if the user shows it then
        // fill it in
        Menu subMenu = new Menu(parent);
        subMenu.addListener(SWT.Show, getMenuCreatorListener());
        subMenu.addListener(SWT.Hide, getMenuCreatorListener());
        mi.setMenu(subMenu);
      }

      update(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.