Package org.eclipse.swt.widgets

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


    label.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    label.setText(upload_session.getED2KLink().getAsString());
    label.setToolTipText(_._("uploadinfowindow.tab.general.label.ed2k_link.tooltip"));
    label.setForeground(SWTThread.getDisplay().getSystemColor(SWT.COLOR_BLUE));
    label.setCursor(new Cursor(SWTThread.getDisplay(),SWT.CURSOR_HAND));
    label.addListener(SWT.MouseUp, new Listener() {
      public void handleEvent(Event arg0) {
        Utils.setClipBoardText(upload_session.getED2KLink().getAsString());
      }
    });
   
View Full Code Here

    label.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    label.setText(shared_file.getED2KLink().getAsString());
    label.setToolTipText(_._("sharedfilepropertieswindow.label.ed2k_link.tooltip"));
    label.setForeground(SWTThread.getDisplay().getSystemColor(SWT.COLOR_BLUE));
    label.setCursor(new Cursor(SWTThread.getDisplay(),SWT.CURSOR_HAND));
    label.addListener(SWT.MouseUp, new Listener() {
      public void handleEvent(Event arg0) {
        Utils.setClipBoardText(shared_file.getED2KLink().getAsString());
      }
    });
   
View Full Code Here

    label.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    label.setText(search_result.getAsED2KLink().getAsString());
    label.setToolTipText(_._("searchpropertieswindow.label.ed2k_link.tooltip"));
    label.setForeground(SWTThread.getDisplay().getSystemColor(SWT.COLOR_BLUE));
    label.setCursor(new Cursor(SWTThread.getDisplay(),SWT.CURSOR_HAND));
    label.addListener(SWT.MouseUp, new Listener() {
      public void handleEvent(Event arg0) {
        Utils.setClipBoardText(search_result.getAsED2KLink().getAsString());
      }
    });
   
View Full Code Here

    label.setToolTipText(_
        ._("downloadinfowindow.tab.general.label.ed2k_link.tooltip"));
    label.setForeground(SWTThread.getDisplay().getSystemColor(
        SWT.COLOR_BLUE));
    label.setCursor(new Cursor(SWTThread.getDisplay(), SWT.CURSOR_HAND));
    label.addListener(SWT.MouseUp, new Listener() {
      public void handleEvent(Event arg0) {
        Utils.setClipBoardText(download_session.getED2KLink()
            .getAsString());
      }
    });
View Full Code Here

    label.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    label.setText(server.getServerLink().getAsString());
    label.setToolTipText(_._("serverpropertieswindow.label.ed2k_link.tooltip"));
    label.setForeground(SWTThread.getDisplay().getSystemColor(SWT.COLOR_BLUE));
    label.setCursor(new Cursor(SWTThread.getDisplay(),SWT.CURSOR_HAND));
    label.addListener(SWT.MouseUp, new Listener() {
      public void handleEvent(Event arg0) {
        Utils.setClipBoardText(server.getServerLink().getAsString());
      }
    });
   
View Full Code Here

    accSec.setDescription(account.jid);
    final Label image = new Label(accSec,SWT.NULL);
    //image.setImage(PlatformUI.getWorkbench().getSharedImages().getImage(ISharedImages.IMG_OBJ_ELEMENT));
    image.setImage(GOIMIcons.getImageForPresence(null,account.xmpp.getOwnPresence()));
    accSec.setTextClient(image);
    image.addListener(SWT.MouseUp,new Listener() {
      public void handleEvent(Event event) {
        setActiveAccount(account);
        contextMenu.setVisible(true);
      }});
    final SpheneListener<StatusChangedEvent> ownPresenceListener = new SpheneListener<StatusChangedEvent>(){
View Full Code Here

        tk.adapt(label,false,false);
        label.setImage(proxy.getIcon().createImage());
        label.setToolTipText(proxy.name + ": " + GameAdapter.GameStatusExtension.formatSocketAddress(target));
        label.setEnabled(false);
        if(game != null) {
          label.addListener(SWT.MouseUp,new Listener() {
 
            public void handleEvent(Event event) {
              proxy.execute(game,gameEx);
            } });
        } else {
View Full Code Here

    presence.addListener(SWT.MouseDown, showMenuListener = new Listener() {
      public void handleEvent(Event event) {
        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(
View Full Code Here

              + ": " + label.computeSize(-1, -1));
          // label.setEnabled(true);
          // label.setText("Muh");
          label.setLayoutData(new RowData(16,16));
          if (game != null) {
            label.addListener(SWT.MouseUp, new Listener() {

              public void handleEvent(Event event) {
                //System.out.println("mouseup");
                proxy.execute(game, gameEx);
              }
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.