Package org.eclipse.swt.custom

Examples of org.eclipse.swt.custom.CCombo.addSelectionListener()


      public void keyPressed(KeyEvent e) {
        keyReleaseOccured(e);
      }
    });

    comboBox.addSelectionListener(new SelectionAdapter() {
      public void widgetDefaultSelected(SelectionEvent event) {
        applyEditorValueAndDeactivate();
      }

      public void widgetSelected(SelectionEvent event) {
View Full Code Here


  }

  @Override
  protected Control createControl(Composite parent) {
    CCombo combo = (CCombo) super.createControl(parent);
    combo.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent event) {
        focusLost();
      }
    });
    return combo;
View Full Code Here

            combo.addModifyListener(fListener);

            // Add a listener to set the selected item back into the cell
            final int col = column;
            combo.addSelectionListener(new SelectionAdapter()
            {
              public void widgetSelected(SelectionEvent event)
              {
                item.setText(col, combo.getText());
                Button a = new Button(incrementTable, SWT.PUSH);
View Full Code Here

//            combo.addModifyListener(fListener);

            // Add a listener to set the selected item back into the cell
            final int col = column;
            combo.addSelectionListener(new SelectionAdapter()
            {
              public void widgetSelected(SelectionEvent event)
              {
                item.setText(col, combo.getText());
                // setDirty(true);
View Full Code Here

//            combo.setFont(tableFont);
            editor.setEditor(combo, item, 1);

            // Add a listener to set the selected item back into the
            // cell
            combo.addSelectionListener(new SelectionAdapter()
            {
              public void widgetSelected(SelectionEvent event)
              {
                item.setText(1, combo.getText());
                                // They selected an item; end the editing
View Full Code Here

//            combo.setFont(tableFont);
            editor.setEditor(combo, item, 1);

            // Add a listener to set the selected item back into the
            // cell
            combo.addSelectionListener(new SelectionAdapter()
            {
              public void widgetSelected(SelectionEvent event)
              {
                item.setText(1, combo.getText());
                                // They selected an item; end the editing
View Full Code Here

        final CCombo combo = new CCombo(tree, SWT.BORDER | SWT.READ_ONLY);
        combo.setItems(new String[] { "default", Boolean.toString(true), Boolean.toString(false) }); //$NON-NLS-1$
        combo.setText(item.getText(2));
        combo.pack();
        combo.addSelectionListener(new SelectionAdapter() {
          public void widgetSelected(SelectionEvent e) {
            if (item.getChecked()) {
              item.setText(2, combo.getText());
              // fTab.updateLaunchConfigurationDialog();
            }
View Full Code Here

                oldEditor.dispose();
              combo.dispose();
            }

          });
          combo.addSelectionListener(new SelectionAdapter() {
            public void widgetSelected(SelectionEvent e) {
              String selection = combo.getText();
              item.setText(1, selection);
              int id = nvp.getId();
              if (obj instanceof GetMetadataErrors) {
View Full Code Here

                  oldEditor.dispose();
                combo.dispose();
              }

            });
            combo.addSelectionListener(new SelectionAdapter() {
              public void widgetSelected(SelectionEvent e) {
                String selection = combo.getText();
                int id = nvp.getId();
                item.setText(1,selection);
                ProcessCasErrors processCasErrors = (ProcessCasErrors) obj;
View Full Code Here

        } else if (nvp.getType() == String.class) {
          final CCombo combo = new CCombo(table, SWT.BORDER | SWT.READ_ONLY);
          combo.setItems(new String[] { "terminate", "disable" }); //$NON-NLS-1$
          combo.setText(item.getText(1));
          combo.pack();
          combo.addSelectionListener(new SelectionAdapter() {
            public void widgetSelected(SelectionEvent e) {
              String selection = combo.getText();
              item.setText(1, selection);
              int id = nvp.getId();
              if (obj instanceof GetMetadataErrors) {
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.