Package org.eclipse.swt.widgets

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


    //if we have been given initial data to work with
    if (source.getEndTime() != null)
      {
      end = new Timestamp(source.getEndTime().getTime());
      endDay.setText(Integer.toString(source.getEndTime().getDate()));
      endMonth.select(source.getEndTime().getMonth());
      endYear.setText(Integer.toString(source.getEndTime().getYear()+1900));
      endHour.setText(Integer.toString(source.getEndTime().getHours()));
      endMinute.setText(Integer.toString(source.getEndTime().getMinutes()));
      endSec.setText(Integer.toString(source.getEndTime().getSeconds()));
      }
View Full Code Here


  protected Control createControl(Composite parent) {
    final Combo c = new Combo(parent, SWT.READ_ONLY);
    c.setBounds(0, 0, 150, 65);
    String items[] = { "Small", "Normal", "Large", "Largest" };
    c.setItems(items);
    c.select(1);

    c.addSelectionListener(new SelectionListener() {
      @Override
      public void widgetSelected(SelectionEvent e) {
        SubshapeView view = (SubshapeView) PlatformUI.getWorkbench()
View Full Code Here

  protected Control createControl(Composite parent) {
    final Combo c = new Combo(parent, SWT.READ_ONLY);
    c.setBounds(0, 0, 150, 65);
    String items[] = { "Small", "Normal", "Large", "Largest" };
    c.setItems(items);
    c.select(1);

    c.addSelectionListener(new SelectionListener() {
      @Override
      public void widgetSelected(SelectionEvent e) {
        SubshapeView view = (SubshapeView) PlatformUI.getWorkbench()
View Full Code Here

    thresholdCombo.add("hurts");
    thresholdCombo.add("some negative");
    thresholdCombo.add("breaks");
    thresholdCombo.setToolTipText("please select a minimal threshold for the attribute explorer here");

    thresholdCombo.select(3);
    thresholdGroup.setEnabled(false);
    thresholdScale.setEnabled(false);
    thresholdSpinner.setEnabled(false);
    thresholdCombo.setEnabled(false);
View Full Code Here

                    combo.remove(0);
                }
                combo.setData(DATA_KEY, userInput);
                combo.add(userInput, 0);
            }
            combo.select(0);
        }
    }

}
View Full Code Here

        final Combo type = new Combo(executeCommandsTable,SWT.DROP_DOWN | SWT.READ_ONLY);
        type.add(GOIMGameExecuteCommands.ExecuteCommandType.BOTH.toString());
        type.add(GOIMGameExecuteCommands.ExecuteCommandType.CONNECT.toString());
        type.add(GOIMGameExecuteCommands.ExecuteCommandType.LAUNCH.toString());
        if(cmd.commandType == GOIMGameExecuteCommands.ExecuteCommandType.BOTH) {
          type.select(0);
        } else if(cmd.commandType == GOIMGameExecuteCommands.ExecuteCommandType.CONNECT) {
          type.select(1);
        } else if(cmd.commandType == GOIMGameExecuteCommands.ExecuteCommandType.LAUNCH) {
          type.select(2);
        }
View Full Code Here

        type.add(GOIMGameExecuteCommands.ExecuteCommandType.CONNECT.toString());
        type.add(GOIMGameExecuteCommands.ExecuteCommandType.LAUNCH.toString());
        if(cmd.commandType == GOIMGameExecuteCommands.ExecuteCommandType.BOTH) {
          type.select(0);
        } else if(cmd.commandType == GOIMGameExecuteCommands.ExecuteCommandType.CONNECT) {
          type.select(1);
        } else if(cmd.commandType == GOIMGameExecuteCommands.ExecuteCommandType.LAUNCH) {
          type.select(2);
        }
        typeEditor.setEditor(type, item, 1);
       
View Full Code Here

        if(cmd.commandType == GOIMGameExecuteCommands.ExecuteCommandType.BOTH) {
          type.select(0);
        } else if(cmd.commandType == GOIMGameExecuteCommands.ExecuteCommandType.CONNECT) {
          type.select(1);
        } else if(cmd.commandType == GOIMGameExecuteCommands.ExecuteCommandType.LAUNCH) {
          type.select(2);
        }
        typeEditor.setEditor(type, item, 1);
       
        final Button wait = new Button(executeCommandsTable,SWT.CHECK);
        wait.setText("Wait");
View Full Code Here

        public void handleEvent(Event arg0) {
          hdfsVersion = hdfsVersionOptions.getText();
        }
       
      });
      options.select(0);
      hdfsVersion=options.getItem(0);
      hdfsVersionOptions = options;
    }
   
    // Security
View Full Code Here

          hadoopVersionText = HadoopVersion.Version1.getDisplayName();

        int pos = 0;
        for (String item : options.getItems()) {
          if (item.equalsIgnoreCase(hadoopVersionText)) {
            options.select(pos);
            break;
          }
          pos++;
        }
        options.setEnabled(false);
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.