Package org.eclipse.swt.widgets

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


          });

          /* Pre-Select input if given */
          Object presetInput = (input == null) ? fInputValue : input;
          if (presetInput != null && presetInput instanceof Boolean)
            combo.select(((Boolean) presetInput) ? 0 : 1);
          else
            combo.select(0);

          /* Update Input Value */
          fInputValue = Boolean.valueOf(combo.getItem(combo.getSelectionIndex()));
View Full Code Here


          /* Pre-Select input if given */
          Object presetInput = (input == null) ? fInputValue : input;
          if (presetInput != null && presetInput instanceof Boolean)
            combo.select(((Boolean) presetInput) ? 0 : 1);
          else
            combo.select(0);

          /* Update Input Value */
          fInputValue = Boolean.valueOf(combo.getItem(combo.getSelectionIndex()));

          break;
View Full Code Here

        Integer inputValue = (Integer) presetInput;

        /* Day */
        if (inputValue >= 0) {
          spinner.setSelection(inputValue);
          combo.select(0);
        }

        /* Hour */
        else if (inputValue % 60 == 0) {
          spinner.setSelection(Math.abs(inputValue) / 60);
View Full Code Here

        }

        /* Hour */
        else if (inputValue % 60 == 0) {
          spinner.setSelection(Math.abs(inputValue) / 60);
          combo.select(1);
        }

        /* Minute */
        else {
          spinner.setSelection(Math.abs(inputValue));
View Full Code Here

        }

        /* Minute */
        else {
          spinner.setSelection(Math.abs(inputValue));
          combo.select(2);
        }
      }

      /* Otherwise use Default */
      else {
View Full Code Here

      }

      /* Otherwise use Default */
      else {
        spinner.setSelection(1);
        combo.select(0);
      }

      /* Update Input Value */
      fInputValue = getAgeValue(spinner, combo);
    }
View Full Code Here

          });

          /* Pre-Select input if given */
          Object presetInput = (input == null) ? fInputValue : input;
          if (presetInput != null && presetInput instanceof Boolean)
            combo.select(((Boolean) presetInput) ? 0 : 1);
          else
            combo.select(0);

          /* Update Input Value */
          fInputValue = Boolean.valueOf(combo.getItem(combo.getSelectionIndex()));
View Full Code Here

          /* Pre-Select input if given */
          Object presetInput = (input == null) ? fInputValue : input;
          if (presetInput != null && presetInput instanceof Boolean)
            combo.select(((Boolean) presetInput) ? 0 : 1);
          else
            combo.select(0);

          /* Update Input Value */
          fInputValue = Boolean.valueOf(combo.getItem(combo.getSelectionIndex()));

          break;
View Full Code Here

        final Combo encodingCombo = new Combo(encodingPanel, SWT.READ_ONLY);
        encodingCombo.setEnabled(showAsText);

        // INITIALISE
        encodingCombo.setItems(charsets);
        encodingCombo.select(selectedCharset);

        // LISTENERS
        encodingSection.addExpansionListener(new ExpansionAdapter() {
            @Override
            public void expansionStateChanged(ExpansionEvent e) {
View Full Code Here

        }
        btnNoAskPackageInfo.setSelection(noAskPackageInfo);
        btnNoCheckCnf.setSelection(noCheckCnf);
        btnCheckCnfNow.setEnabled(!noCheckCnf);
        btnWarnExistingLaunch.setSelection(warnExistingLaunch);
        cmbBuildLogging.select(buildLogging);
        btnEditorOpenSourceTab.setSelection(editorOpenSourceTab);
        // headless already done
        // versionControlIgnores already done

        // Listeners
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.