Package org.eclipse.swt.widgets

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


                label.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));

                Combo combo = new Combo(this, SWT.READ_ONLY);
                combo.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));

                combo.addSelectionListener(this);

                String textData = configParams.get(name);
                if (Param.BOOLEAN_TYPE.equals(param.getType())) {
                    combo.add(""); // default
                    combo.add("true");
View Full Code Here


        typeCombo.setItems(typeMappingList.toArray(new String[typeMappingList.size()]));
        GridData gridData = new GridData(GridData.FILL_HORIZONTAL);
        gridData.minimumWidth = 200;
        typeCombo.setLayoutData(gridData);
        typeCombo.setText(TypeNameMapping.getTypeName(type));
        typeCombo.addSelectionListener(new SelectionAdapter() {
            @Override
            public void widgetSelected(SelectionEvent event) {
                type = reverseMapping.get(typeCombo.getText());
            }
        });
View Full Code Here

        });
        gridData = new GridData(GridData.FILL_HORIZONTAL);
        gridData.minimumWidth = 200;
        comboVisibility.setLayoutData(gridData);
        comboVisibility.setText(comboVisibility.getItem(publicVisibility ? 1 : 0));
        comboVisibility.addSelectionListener(new SelectionAdapter() {
            @Override
            public void widgetSelected(SelectionEvent event) {
                publicVisibility = comboVisibility.getSelectionIndex() == 1;
            }
        });
View Full Code Here

                    combo.add(variableName);
                }
            }
            combo.setText(parameterModel.varName);
            combo.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
            combo.addSelectionListener(new SelectionAdapter() {
                @Override
                public void widgetSelected(SelectionEvent e) {
                    parameterModel.varName = combo.getText();
                    parameterModel.swimlaneVar = definition.getSwimlaneByName(parameterModel.varName) != null;
                }
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

    c2.setLayout(new GridLayout(4, false));
    addEmptyLabel(c2, choice.level * 2);
    Combo combo = new Combo(c2, SWT.DROP_DOWN | SWT.READ_ONLY);
    addPersonFields(combo);
    combo.setData("choice", i);
    combo.addSelectionListener(this);
    combo.select(choice.index);
    Button buttonRemove = new Button(c2, SWT.PUSH);
    buttonRemove.setText("-");
    buttonRemove.setData("remove", i);
    buttonRemove.addSelectionListener(this);
View Full Code Here

    final Combo m = new Combo(topBar, SWT.READ_ONLY);
    final String[] items = STRINGS;
   
    m.setItems(items);
    m.select(items.length - 1);
    m.addSelectionListener(new SelectionAdapter(){

     
      public void widgetSelected(SelectionEvent e) {
        currentSeverity=items.length-1-m.getSelectionIndex();
        logViewer.getTreeViewer().getTree().setRedraw(false);
View Full Code Here

      }
      fPartitionTable.setCellEditors(cellEditors);
      fPartitionTable.setColumnProperties(columns);
      final String[] partitionings = (fDocument instanceof IDocumentExtension3) ? ((IDocumentExtension3) fDocument).getPartitionings() : new String[]{IDocumentExtension3.DEFAULT_PARTITIONING};
      partitioningCombo.setItems(partitionings);
      partitioningCombo.addSelectionListener(new SelectionAdapter() {
        public void widgetSelected(SelectionEvent e) {
          ISelection sel = fTextEditor.getSelectionProvider().getSelection();
          ITextSelection textSelection = (ITextSelection) sel;
          try {
            String partitionerText = fDocument instanceof IDocumentExtension3 ? ((IDocumentExtension3) fDocument).getDocumentPartitioner(partitioningCombo.getItem(partitioningCombo.getSelectionIndex())).toString() : ("" + fDocument.getDocumentPartitioner()); //$NON-NLS-1$
View Full Code Here

    ComboData data = new ComboData(key, values, -1);
   
    Combo comboBox= new Combo(composite, SWT.READ_ONLY);
    comboBox.setItems(valueLabels);
    comboBox.setData(data);
    comboBox.addSelectionListener(getSelectionListener());
    comboBox.setFont(JFaceResources.getDialogFont());
     
    makeScrollableCompositeAware(comboBox);
   
    int severity = -1;
View Full Code Here

    ComboData data = new ComboData(key, values, -1);

    Combo comboBox = new Combo(composite, SWT.READ_ONLY);
    comboBox.setItems(valueLabels);
    comboBox.setData(data);
    comboBox.addSelectionListener(getSelectionListener());
    comboBox.setFont(JFaceResources.getDialogFont());

    makeScrollableCompositeAware(comboBox);

    int severity = -1;
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.