Package org.eclipse.swt.widgets

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


            levelComp.setLayout(new GridLayout(2,false));
           
            _toolkit.createLabel(levelComp,"Level: ").setBackground(levelComp.getBackground());
            final Combo levelCombo = new Combo (levelComp, SWT.READ_ONLY );
            levelCombo.setItems(_availableLoggerLevels);
            levelCombo.select(0);

            Composite okCancelButtonsComp = _toolkit.createComposite(shell);
            okCancelButtonsComp.setBackground(shell.getBackground());
            okCancelButtonsComp.setLayoutData(new GridData(SWT.RIGHT, SWT.FILL, true, true));
            okCancelButtonsComp.setLayout(new GridLayout(2,false));
View Full Code Here


        levelComp.setLayout(new GridLayout(2,false));
       
        _toolkit.createLabel(levelComp,"RootLogger level: ").setBackground(levelComp.getBackground());
        final Combo levelCombo = new Combo (levelComp, SWT.READ_ONLY );
        levelCombo.setItems(_availableLoggerLevels);
        levelCombo.select(0);

        Composite okCancelButtonsComp = _toolkit.createComposite(shell);
        okCancelButtonsComp.setBackground(shell.getBackground());
        okCancelButtonsComp.setLayoutData(new GridData(SWT.RIGHT, SWT.FILL, true, true));
        okCancelButtonsComp.setLayout(new GridLayout(2,false));
View Full Code Here

            levelComp.setLayout(new GridLayout(2,false));
           
            _toolkit.createLabel(levelComp,"Level: ").setBackground(levelComp.getBackground());
            final Combo levelCombo = new Combo (levelComp, SWT.READ_ONLY );
            levelCombo.setItems(_availableLoggerLevels);
            levelCombo.select(0);
           
            Composite okCancelButtonsComp = _toolkit.createComposite(shell);
            okCancelButtonsComp.setBackground(shell.getBackground());
            okCancelButtonsComp.setLayoutData(new GridData(SWT.RIGHT, SWT.FILL, true, true));
            okCancelButtonsComp.setLayout(new GridLayout(2,false));
View Full Code Here

        levelComp.setLayout(new GridLayout(2,false));
       
        _toolkit.createLabel(levelComp,"RootLogger level: ").setBackground(levelComp.getBackground());
        final Combo levelCombo = new Combo (levelComp, SWT.READ_ONLY );
        levelCombo.setItems(_availableLoggerLevels);
        levelCombo.select(0);
       
        Composite okCancelButtonsComp = _toolkit.createComposite(shell);
        okCancelButtonsComp.setBackground(shell.getBackground());
        okCancelButtonsComp.setLayoutData(new GridData(SWT.RIGHT, SWT.FILL, true, true));
        okCancelButtonsComp.setLayout(new GridLayout(2,false));
View Full Code Here

    Button btnRadioButton = new Button(grpValueType, SWT.RADIO);
    btnRadioButton.setSelection(true);
    btnRadioButton.setText(RedisClient.i18nFile.getText(I18nFile.TEXT));
    final Combo textType = new Combo(grpValueType, SWT.DROP_DOWN | SWT.READ_ONLY);
    textType.setItems(new String[] { RedisClient.i18nFile.getText(I18nFile.PLAINTEXT), RedisClient.i18nFile.getText(I18nFile.JSON), RedisClient.i18nFile.getText(I18nFile.XML) });
    textType.select(0);

    Button btnRadioButton_1 = new Button(grpValueType, SWT.RADIO);
    btnRadioButton_1.setText(RedisClient.i18nFile.getText(I18nFile.IMAGE));
    final Combo imageType = new Combo(grpValueType, SWT.DROP_DOWN | SWT.READ_ONLY);
    imageType.setEnabled(false);
View Full Code Here

                Messages.BndPreferencePage_cmbBuildLogging_None, Messages.BndPreferencePage_cmbBuildLogging_Basic, Messages.BndPreferencePage_cmbBuildLogging_Full
        });
        cmbBuildLogging.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));

        // Load Data
        cmbBuildLogging.select(buildLogging);

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

 
    final Combo casFormatCombo = new Combo(importOptions, SWT.READ_ONLY);
    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

        }
       
        viewSelectionCombo.setItems(viewNames.toArray(new String[viewNames.size()]));
       
        // Preselect default view, will always be there
        viewSelectionCombo.select(0);
       
        Button switchView = new Button(noTextComposite, SWT.PUSH);
        switchView.setText("Switch");
       
        // TODO: Add a combo to select view ...
View Full Code Here

        gridData = createDefaultGridData();
        elseCombo.setLayoutData(gridData);
        elseCombo.add(Messages.StyleEditor_theme_else_hide);
        elseCombo.add(Messages.StyleEditor_theme_else_min);
        elseCombo.add(Messages.StyleEditor_theme_else_max);
        elseCombo.select(0);
        elseCombo.setToolTipText(Messages.StyleEditor_theme_else_tip);
        elseCombo.addSelectionListener(new ElseComboListener());
  }

  private void loadWithAttributeTypes(Combo attributeCombo,
View Full Code Here

            breaksCombo.add(Messages.StyleEditor_theme_equalInterval);
            breaksCombo.add(Messages.StyleEditor_theme_quantile);
            breaksCombo.add(Messages.StyleEditor_theme_uniques);
            //breaksCombo.add(Messages.StyleEditor_theme_standardDeviation);
            int index = breaksCombo.indexOf(value);
            if (index > -1) breaksCombo.select(index);
            else breaksCombo.select(1);
        } else { //show categorical break types
            breaksCombo.add(Messages.StyleEditor_theme_uniques);
            int index = breaksCombo.indexOf(value);
            if (index > -1) breaksCombo.select(index);
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.