Package org.eclipse.swt.widgets

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


            date.setMonthOfYear(i);
            monthCombo.add(new SimpleDateFormat("MMMM").format(date.getDate()));
        }
        monthCombo.select(new GDDate().getMonth()-1);
   
        monthCombo.addSelectionListener(new SelectionAdapter() {
            public void widgetSelected(SelectionEvent e) {
                GDDate myCalendar = new GDDate();
                myCalendar.setTimeInMillis(getCalendar());
                myCalendar.setMonthOfYear(monthCombo.getSelectionIndex()+1);//(Calendar.MONTH, monthCombo.getSelectionIndex());
                setCalendar(myCalendar);
View Full Code Here


      date.setMonthOfYear(i);
      monthCombo.add(new SimpleDateFormat("MMMM").format(date.getDate()));
    }
    monthCombo.select(new GDDate().getMonth()-1);

    monthCombo.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent e) {
        GDDate myCalendar = new GDDate(getCalendar());
        myCalendar.setMonthOfYear(monthCombo.getSelectionIndex() + 1);
        setCalendar(myCalendar);
        updateAppointmentTableValues();
View Full Code Here

    filterField.addModifyListener(new FilterListener(tokenList));
   
    listener = (new SelectedTokenListener(tokenList, selector, fontStyle));
    tokenList.addSelectionListener(new SelectedTokenListener(tokenList, selector, fontStyle));   
    selector.addListener(new ColorChangeListener(selector, tokenList));
    fontStyle.addSelectionListener(new FontStyleChangeListener(fontStyle, tokenList));
   
    if(editorChooser.getItemCount()>0){
      editorChooser.select(0);
      generateListContent(tokenList);
    }
View Full Code Here

      date.setMonthOfYear(i);
      monthCombo.add(new SimpleDateFormat("MMMM").format(date.getDate()));
    }
        monthCombo.select(new GDDate().getMonth()-1);
   
        monthCombo.addSelectionListener(new SelectionAdapter() {
            public void widgetSelected(SelectionEvent e) {
              GDDate myCalendar = new GDDate(getCalendar());
        myCalendar.setMonthOfYear(monthCombo.getSelectionIndex() + 1);
        setCalendar(myCalendar);
        updateAppointmentTableValues();
View Full Code Here

        } else {
            sortByCombo.select(0);
        }
        sortBy = sortByCombo.getSelectionIndex();

        sortByCombo.addSelectionListener(new SelectionAdapter() {
            @Override
            public void widgetDefaultSelected(SelectionEvent e) {
                widgetSelected(e);
            }
View Full Code Here

    charsets.add("UTF-16");
    charsets.add(importEncoding);
   
    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

      typesCombo.select(0);

      final ScriptProperties properties = buildScriptProperties(main);
      fillScriptProperties(properties, mappingList.get(0));

      typesCombo.addSelectionListener(new SelectionListener() {
        public void widgetDefaultSelected(SelectionEvent e) {
        }
        public void widgetSelected(SelectionEvent e) {
          int index = typesCombo.getSelectionIndex();
          fillScriptProperties(properties, mappingList.get(index));
View Full Code Here

    }

    final BreakpointProperties breakpointProperties = new BreakpointProperties();
    breakpointProperties.fillIn(0);

    typesCombo.addSelectionListener(new SelectionListener() {
      public void widgetDefaultSelected(SelectionEvent e) {
      }
      public void widgetSelected(SelectionEvent e) {
        int index = typesCombo.getSelectionIndex();
        breakpointProperties.fillIn(index);
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

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.