Examples of addSelectionListener()


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

      MenuItem startItem = new MenuItem(runtimeMenu, SWT.DROP_DOWN);
      startItem.setText("start");
      startItem.setImage(WGADesignerPlugin.getDefault().getImageRegistry().get(WGADesignerPlugin.IMAGE_WGA_SERVER_START));
      startItem.setData(runtime);
      startItem.setData(ATTRIB_COMMAND, COMMAND_START);
      startItem.addSelectionListener(this);
      if (TomcatUtils.getInstance().isRunning(runtime)) {
        startItem.setEnabled(false);
      }
     
      MenuItem stopItem = new MenuItem(runtimeMenu, SWT.DROP_DOWN);
View Full Code Here

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

      MenuItem stopItem = new MenuItem(runtimeMenu, SWT.DROP_DOWN);
      stopItem.setText("stop");
      stopItem.setImage(WGADesignerPlugin.getDefault().getImageRegistry().get(WGADesignerPlugin.IMAGE_WGA_SERVER_STOP));
      stopItem.setData(runtime);
      stopItem.setData(ATTRIB_COMMAND, COMMAND_STOP);
      stopItem.addSelectionListener(this);
      if (!TomcatUtils.getInstance().isRunning(runtime)) {
        stopItem.setEnabled(false);
      }
     
      MenuItem configureItem = new MenuItem(runtimeMenu, SWT.DROP_DOWN);
View Full Code Here

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

      MenuItem configureItem = new MenuItem(runtimeMenu, SWT.DROP_DOWN);
      configureItem.setText("configure");
      configureItem.setImage(WGADesignerPlugin.getDefault().getImageRegistry().get(WGADesignerPlugin.IMAGE_WGA_RUNTIME_EDIT));
      configureItem.setData(runtime);
      configureItem.setData(ATTRIB_COMMAND, COMMAND_EDIT);
      configureItem.addSelectionListener(this);
    }
   
   
    return menu;
  }
View Full Code Here

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

    popup_menu = new Menu(peers_table);
   
    MenuItem column_setup = new MenuItem(popup_menu,SWT.NONE);
    column_setup.setText(_._("downloadinfowindow.tab.peerlist.menu.column_setup"));
    column_setup.setImage(SWTImageRepository.getImage("columns_setup.png"));
    column_setup.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent event) {
        peers_table.showColumnEditorWindow();
      }
    });
  }
View Full Code Here

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

    no_uploads_menu = new Menu(this);
   
    MenuItem column_setup = new MenuItem(no_uploads_menu,SWT.PUSH);
    column_setup.setText(Localizer._("mainwindow.transferstab.uploads.popupmenu.columnsetup"));
    column_setup.setImage(SWTImageRepository.getImage("columns_setup.png"));
    column_setup.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected( SelectionEvent e ) {
        showColumnEditorWindow();
      }
    });
   
View Full Code Here

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

    new MenuItem(upload_selected_menu,SWT.SEPARATOR);
   
    MenuItem upload_details = new MenuItem(upload_selected_menu,SWT.PUSH);
    upload_details.setText(Localizer._("mainwindow.transferstab.uploads.popupmenu.details"));
    upload_details.setImage(SWTImageRepository.getImage("info.png"));
    upload_details.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected( SelectionEvent e ) {
        UploadInfoWindow window = new UploadInfoWindow(getSelectedObject());
        window.getCoreComponents();
        window.initUIComponents();
      }
View Full Code Here

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

    no_items_menu = new Menu(search_results);

    MenuItem no_items_close_tab = new MenuItem(no_items_menu, SWT.PUSH);
    no_items_close_tab.setText(_._("mainwindow.searchtab.popupmenu.close"));
    no_items_close_tab.setImage(SWTImageRepository.getImage("cancel.png"));
    no_items_close_tab.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent arg0) {
        search_tab.dispose();
      }

    });
View Full Code Here

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

        SWT.PUSH);
    no_items_column_setup_item.setText(_
        ._("mainwindow.searchtab.popupmenu.column_setup"));
    no_items_column_setup_item.setImage(SWTImageRepository
        .getImage("columns_setup.png"));
    no_items_column_setup_item.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent arg0) {
        search_results.showColumnEditorWindow();
      }
    });
View Full Code Here

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

    });

    MenuItem try_again = new MenuItem(pop_up_menu, SWT.PUSH);
    try_again.setText(_._("mainwindow.searchtab.popupmenu.try_again"));
    try_again.setImage(SWTImageRepository.getImage("refresh.png"));
    try_again.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent arg0) {
        retry();
      }
    });
View Full Code Here

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

    MenuItem copy_ed2k_item = new MenuItem(pop_up_menu, SWT.PUSH);
    copy_ed2k_item.setText(_
        ._("mainwindow.searchtab.popupmenu.copy_ed2k_link"));
    copy_ed2k_item.setImage(SWTImageRepository.getImage("ed2k_link.png"));
    copy_ed2k_item.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent arg0) {
        copyED2KLinks();
      }
    });
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.