Package org.eclipse.swt.widgets

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


                loadContent();
            }
        };
        btnText.addSelectionListener(radioListener);
        btnBinary.addSelectionListener(radioListener);
        encodingCombo.addSelectionListener(new SelectionAdapter() {
            @Override
            public void widgetSelected(SelectionEvent e) {
                selectedCharset = encodingCombo.getSelectionIndex();
                loadContent();
            }
View Full Code Here

            @Override
            public void widgetSelected(SelectionEvent e) {
                warnExistingLaunch = btnWarnExistingLaunch.getSelection();
            }
        });
        cmbBuildLogging.addSelectionListener(new SelectionAdapter() {
            @Override
            public void widgetSelected(SelectionEvent e) {
                buildLogging = cmbBuildLogging.getSelectionIndex();
            }
        });
View Full Code Here

                loadContent();
            }
        };
        btnText.addSelectionListener(radioListener);
        btnBinary.addSelectionListener(radioListener);
        encodingCombo.addSelectionListener(new SelectionAdapter() {
            @Override
            public void widgetSelected(SelectionEvent e) {
                selectedCharset = encodingCombo.getSelectionIndex();
                loadContent();
            }
View Full Code Here

    typeCombo.setLayoutData(new GridData(GridData.FILL, GridData.BEGINNING, true, false, 1, 1));
    typeCombo.setItems(items);
    typeCombo.select(0);
    typeCombo.setEnabled(selectedItemFinal != null);

    typeCombo.addSelectionListener(new SelectionListener() {

      public void widgetSelected(SelectionEvent e) {
        if (selectedItemFinal != null) {
          selectedItemFinal.setPlan(plans.get(typeCombo.getSelectionIndex()));
        }
View Full Code Here

        combo.setItems(qList.toArray(new String[0]));
        combo.add("Select Queue", 0);
        combo.select(0);
        combo.setLayoutData(formData);
        combo.setData(param);
        combo.addSelectionListener(parameterSelectionListener);

        // Binding creation widgets
        createARowForCreatingHeadersBinding(composite, 1);
        createARowForCreatingHeadersBinding(composite, 2);
        createARowForCreatingHeadersBinding(composite, 3);
View Full Code Here

      public void widgetSelected(SelectionEvent e) {
        tranformText(textType, text);
        currentTextType = textType.getSelectionIndex();
      }
    });
    imageType.addSelectionListener(new SelectionAdapter() {
      @Override
      public void widgetSelected(SelectionEvent e) {
        tranformImage(imageType, label);
        currentImageType = imageType.getSelectionIndex();
      }
View Full Code Here

        // Load Data
        cmbBuildLogging.select(buildLogging);

        // Listeners
        cmbBuildLogging.addSelectionListener(new SelectionAdapter() {
            @Override
            public void widgetSelected(SelectionEvent e) {
                buildLogging = cmbBuildLogging.getSelectionIndex();
            }
        });
View Full Code Here

      importEncoding = Charset.defaultCharset().displayName();
    }
   
    encodingCombo.setItems(charsets.toArray(new String[charsets.size()]));
    encodingCombo.setText(importEncoding);
    encodingCombo.addSelectionListener(new SelectionListener() {
     
      public void widgetSelected(SelectionEvent e) {
        importEncoding = encodingCombo.getText();
        updatePageState();
      }
View Full Code Here

    casFormatCombo.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    casFormatCombo.setItems(new String[]{DocumentFormat.XMI.toString(), DocumentFormat.XCAS.toString()});
    documentFormat = DocumentFormat.XMI;
    casFormatCombo.select(0);
   
    casFormatCombo.addSelectionListener(new SelectionListener() {
     
      public void widgetSelected(SelectionEvent e) {
        documentFormat = DocumentFormat.valueOf(casFormatCombo.getText());
      }
     
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.