Examples of addSelectionListener()


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

      }

      /* Combo */
      else if (c instanceof Combo) {
        Combo combo = (Combo) c;
        combo.addSelectionListener(new SelectionAdapter() {
          @Override
          public void widgetSelected(SelectionEvent e) {
            run.run();
          }
        });
View Full Code Here

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

      Link textLink = new Link(fJSInfoBar, SWT.NONE);
      textLink.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, true));
      textLink.setBackground(fJSInfoBar.getBackground());
      textLink.setText(Messages.WebBrowserView_JS_DISABLED_INFO);
      textLink.addSelectionListener(new SelectionAdapter() {
        @Override
        public void widgetSelected(SelectionEvent e) {
          PreferencesUtil.createPreferenceDialogOn(fBrowser.getControl().getShell(), BrowserPreferencePage.ID, null, Boolean.TRUE).open();
        }
      });
View Full Code Here

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

                SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL);
        GridData listGridData = new GridData(GridData.FILL_BOTH);
        listGridData.heightHint = HEIGHT_HINT;
        listGridData.widthHint = WIDTH_HINT;
        list.setLayoutData(listGridData);
        list.addSelectionListener(new SelectionAdapter() {
            public void widgetSelected(SelectionEvent selectionEvent) {
                updateButtons();
            }
        });
        return list;
View Full Code Here

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

          MenuItem   item = new MenuItem( menu,SWT.NONE );

          item.setText( MessageText.getString( "ConfigView.copy.to.clipboard.tooltip"));

          item.addSelectionListener(
              new SelectionAdapter()
              {
                public void
                widgetSelected(
                    SelectionEvent arg0)
View Full Code Here

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

    Menu menuSS = new Menu(menu.getParent(), SWT.DROP_DOWN);
    item.setMenu(menuSS);

    item = new MenuItem(menuSS, SWT.NONE);
    item.setText("640x400");
    item.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent e) {
        uiFunctions.getMainShell().setSize(640, 400);
      }
    });
View Full Code Here

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

      }
    });

    item = new MenuItem(menuSS, SWT.NONE);
    item.setText("800x560");
    item.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent e) {
        uiFunctions.getMainShell().setSize(850, 560);
      }
    });
View Full Code Here

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

      }
    });

    item = new MenuItem(menuSS, SWT.NONE);
    item.setText("1024x700");
    item.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent e) {
        uiFunctions.getMainShell().setSize(1024, 700);
      }
    });
View Full Code Here

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

      }
    });

    item = new MenuItem(menuSS, SWT.NONE);
    item.setText("1024x768");
    item.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent e) {
        uiFunctions.getMainShell().setSize(1024, 768);
      }
    });
   
View Full Code Here

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

      }
    });
   
    item = new MenuItem(menuSS, SWT.NONE);
    item.setText("1152x784");
    item.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent e) {
        uiFunctions.getMainShell().setSize(1152, 784);
      }
    });
View Full Code Here

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

      }
    });

    item = new MenuItem(menuSS, SWT.NONE);
    item.setText("1280x720");
    item.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent e) {
        uiFunctions.getMainShell().setSize(1280, 720);
      }
    });
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.