Package org.eclipse.swt.widgets

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


    new MenuItem(popup_menu,SWT.SEPARATOR);
   
    final MenuItem clear = new MenuItem(popup_menu,SWT.PUSH);
    clear.setText(_._("mainwindow.serverlisttab.servermesasges.popupmenu.clear"));
    clear.setImage(SWTImageRepository.getImage("remove_all.png"));
    clear.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent event) {
        setText("");
      }
    });
   
View Full Code Here


    no_servers_menu = new Menu(this);
   
    MenuItem no_servers_server_add = new MenuItem (no_servers_menu, SWT.PUSH);
    no_servers_server_add.setText (Localizer._("mainwindow.serverlisttab.serverlist.popupmenu.add_server"));
    no_servers_server_add.setImage(SWTImageRepository.getImage("server_add.png"));
    no_servers_server_add.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(final SelectionEvent e) {
        showServerAddWindow();
      }
    });
   
View Full Code Here

    new MenuItem (no_servers_menu, SWT.SEPARATOR);
   
    MenuItem no_server_paste_ed2k_links = new MenuItem (no_servers_menu, SWT.PUSH);
    no_server_paste_ed2k_links.setText (Localizer._("mainwindow.serverlisttab.serverlist.popupmenu.paste_ed2k_links"));
    no_server_paste_ed2k_links.setImage(SWTImageRepository.getImage("ed2k_link_paste.png"));
    no_server_paste_ed2k_links.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(final SelectionEvent e) {
        pasteED2KLinks();
      }
    });
   
View Full Code Here

   
    new MenuItem (no_servers_menu, SWT.SEPARATOR);
    MenuItem no_server_column_setup = new MenuItem (no_servers_menu, SWT.PUSH);
    no_server_column_setup.setText (Localizer._("mainwindow.serverlisttab.serverlist.popupmenu.column_setup"));
    no_server_column_setup.setImage(SWTImageRepository.getImage("columns_setup.png"));
    no_server_column_setup.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(final SelectionEvent e) {
        showColumnEditorWindow();
      }
    });
   
View Full Code Here

   
    no_selected_servers_menu = new Menu(this);
    MenuItem no_selection_menu_add = new MenuItem(no_selected_servers_menu,SWT.PUSH);
    no_selection_menu_add.setText(Localizer._("mainwindow.serverlisttab.serverlist.popupmenu.add_server"));
    no_selection_menu_add.setImage(SWTImageRepository.getImage("server_add.png"));
    no_selection_menu_add.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(final SelectionEvent e) {
        showServerAddWindow();
      }
    });
   
View Full Code Here

    new MenuItem(no_selected_servers_menu,SWT.SEPARATOR);
   
    MenuItem no_selection_menu_remove_all = new MenuItem(no_selected_servers_menu,SWT.PUSH);
    no_selection_menu_remove_all.setText(Localizer._("mainwindow.serverlisttab.serverlist.popupmenu.remove_all"));
    no_selection_menu_remove_all.setImage(SWTImageRepository.getImage("remove_all.png"));
    no_selection_menu_remove_all.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(final SelectionEvent e) {
        clearServerList();
      }
    });
   
View Full Code Here

    new MenuItem(no_selected_servers_menu,SWT.SEPARATOR)
   
    MenuItem no_selection_menu_paste_ed2k = new MenuItem(no_selected_servers_menu,SWT.PUSH);
    no_selection_menu_paste_ed2k.setText(Localizer._("mainwindow.serverlisttab.serverlist.popupmenu.paste_ed2k_links"));
    no_selection_menu_paste_ed2k.setImage(SWTImageRepository.getImage("ed2k_link_paste.png"));
    no_selection_menu_paste_ed2k.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(final SelectionEvent e) {
        pasteED2KLinks();
      }
    });
   
View Full Code Here

    new MenuItem(no_selected_servers_menu,SWT.SEPARATOR);
   
    MenuItem no_selection_menu_column_setup = new MenuItem(no_selected_servers_menu,SWT.PUSH);
    no_selection_menu_column_setup.setText(Localizer._("mainwindow.serverlisttab.serverlist.popupmenu.column_setup"));
    no_selection_menu_column_setup.setImage(SWTImageRepository.getImage("columns_setup.png"));
    no_selection_menu_column_setup.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(final SelectionEvent e) {
        showColumnEditorWindow();
      }
    });
   
View Full Code Here

   
    new MenuItem (selected_server_menu, SWT.SEPARATOR);
    MenuItem server_add = new MenuItem (selected_server_menu, SWT.PUSH);
    server_add.setText (Localizer._("mainwindow.serverlisttab.serverlist.popupmenu.add_server"));
    server_add.setImage(SWTImageRepository.getImage("server_add.png"));
    server_add.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(final SelectionEvent e) {
        showServerAddWindow();
      }
    });
    final MenuItem server_remove = new MenuItem (selected_server_menu, SWT.PUSH);
View Full Code Here

      }
    });
    final MenuItem server_remove = new MenuItem (selected_server_menu, SWT.PUSH);
    server_remove.setText (Localizer._("mainwindow.serverlisttab.serverlist.popupmenu.remove_server"));
    server_remove.setImage(SWTImageRepository.getImage("server_delete.png"));
    server_remove.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(final SelectionEvent e) {
        removeSelectedServers();
      }
    });
    server_remove_all = new MenuItem (selected_server_menu, SWT.PUSH);
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.