Package org.eclipse.swt.widgets

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


        int pos = table.getSelectionIndex();
        if (pos > 0) {
          item = new MenuItem(menu, SWT.PUSH);
          item.setText("Move Up");
          item.addListener(SWT.Selection,
              new org.eclipse.swt.widgets.Listener() {
                public void handleEvent(Event e) {
                  int pos = table.getSelectionIndex();
                  TableItem it1 = table.getItem(pos);
                  String[] sa = new String[provider
View Full Code Here


   
      Menu deleteInitialConcepts = new Menu(shell, SWT.POP_UP);
       initialConcepts.setMenu(deleteInitialConcepts);
        MenuItem item = new MenuItem(deleteInitialConcepts, SWT.PUSH);
        item.setText(ApplicationResources.getString("SetInitialConcepts.5")); //$NON-NLS-1$
        item.addListener(SWT.Selection, new Listener() {
          public void handleEvent(Event event) {
            initialConcepts.remove(initialConcepts.getSelectionIndices());
          }
        });
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.