Examples of Combo


Examples of org.eclipse.swt.widgets.Combo

    else if (fUpdateIntervalScope == HOURS_SCOPE)
      fReloadSpinner.setSelection((int) (fPrefUpdateInterval / HOUR_IN_SECONDS));
    else if (fUpdateIntervalScope == DAYS_SCOPE)
      fReloadSpinner.setSelection((int) (fPrefUpdateInterval / DAY_IN_SECONDS));

    fReloadCombo = new Combo(autoReloadContainer, SWT.READ_ONLY);
    fReloadCombo.add("Minutes");
    fReloadCombo.add("Hours");
    fReloadCombo.add("Days");
    fReloadCombo.select(fUpdateIntervalScope);
    fReloadCombo.setEnabled(fPrefUpdateIntervalState);
View Full Code Here

Examples of org.eclipse.swt.widgets.Combo

    else if (updateScope == HOURS_SCOPE)
      fUpdateValueSpinner.setSelection((int) (updateInterval / HOUR_IN_SECONDS));
    else if (updateScope == DAYS_SCOPE)
      fUpdateValueSpinner.setSelection((int) (updateInterval / DAY_IN_SECONDS));

    fUpdateScopeCombo = new Combo(autoReloadContainer, SWT.READ_ONLY);
    fUpdateScopeCombo.add("Minutes");
    fUpdateScopeCombo.add("Hours");
    fUpdateScopeCombo.add("Days");
    fUpdateScopeCombo.select(updateScope);
    fUpdateScopeCombo.setEnabled(fUpdateCheck.getSelection());
View Full Code Here

Examples of org.eclipse.swt.widgets.Combo

    /* Filter Settings */
    Label filterLabel = new Label(group, SWT.None);
    filterLabel.setText("Filter News: ");

    fFilterCombo = new Combo(group, SWT.BORDER | SWT.READ_ONLY);
    fFilterCombo.setLayoutData(new GridData(SWT.FILL, SWT.BEGINNING, false, false));
    fFilterCombo.add("Use Default");

    NewsFilter.Type[] filters = NewsFilter.Type.values();
    for (NewsFilter.Type filter : filters)
      fFilterCombo.add(filter.getName());

    fFilterCombo.select(fGlobalScope.getInteger(DefaultPreferences.BM_NEWS_FILTERING) + 1);
    fFilterCombo.setVisibleItemCount(fFilterCombo.getItemCount());

    /* Group Settings */
    Label groupLabel = new Label(group, SWT.None);
    groupLabel.setText("Group News: ");

    fGroupCombo = new Combo(group, SWT.BORDER | SWT.READ_ONLY);
    fGroupCombo.setLayoutData(new GridData(SWT.FILL, SWT.BEGINNING, false, false));
    fGroupCombo.add("Use Default");

    NewsGrouping.Type[] groups = NewsGrouping.Type.values();
    for (NewsGrouping.Type groupT : groups)
View Full Code Here

Examples of org.eclipse.swt.widgets.Combo

    else if (fUpdateIntervalScope == HOURS_SCOPE)
      fReloadSpinner.setSelection((int) (fPrefUpdateInterval / HOUR_IN_SECONDS));
    else if (fUpdateIntervalScope == DAYS_SCOPE)
      fReloadSpinner.setSelection((int) (fPrefUpdateInterval / DAY_IN_SECONDS));

    fReloadCombo = new Combo(autoReloadContainer, SWT.READ_ONLY);
    fReloadCombo.add("Minutes");
    fReloadCombo.add("Hours");
    fReloadCombo.add("Days");
    fReloadCombo.select(fUpdateIntervalScope);
    fReloadCombo.setEnabled(fPrefUpdateIntervalState);
View Full Code Here

Examples of org.eclipse.swt.widgets.Combo

    /* Filter Settings */
    Label filterLabel = new Label(container, SWT.None);
    filterLabel.setText("Filter News: ");

    fFilterCombo = new Combo(container, SWT.BORDER | SWT.READ_ONLY);
    fFilterCombo.setLayoutData(new GridData(SWT.FILL, SWT.BEGINNING, false, false));
    fFilterCombo.add("Use Default");

    NewsFilter.Type[] filters = NewsFilter.Type.values();
    for (NewsFilter.Type filter : filters)
      fFilterCombo.add(filter.getName());

    fFilterCombo.select(fPrefSelectedFilter + 1);
    fFilterCombo.setVisibleItemCount(fFilterCombo.getItemCount());

    /* Group Settings */
    Label groupLabel = new Label(container, SWT.None);
    groupLabel.setText("Group News: ");

    fGroupCombo = new Combo(container, SWT.BORDER | SWT.READ_ONLY);
    fGroupCombo.setLayoutData(new GridData(SWT.FILL, SWT.BEGINNING, false, false));
    fGroupCombo.add("Use Default");

    NewsGrouping.Type[] groups = NewsGrouping.Type.values();
    for (NewsGrouping.Type group : groups)
View Full Code Here

Examples of org.eclipse.swt.widgets.Combo

    else if (updateScope == HOURS_SCOPE)
      fUpdateValueSpinner.setSelection((int) (updateInterval / HOUR_IN_SECONDS));
    else if (updateScope == DAYS_SCOPE)
      fUpdateValueSpinner.setSelection((int) (updateInterval / DAY_IN_SECONDS));

    fUpdateScopeCombo = new Combo(autoReloadContainer, SWT.READ_ONLY);
    fUpdateScopeCombo.add("Minutes");
    fUpdateScopeCombo.add("Hours");
    fUpdateScopeCombo.add("Days");
    fUpdateScopeCombo.select(updateScope);
    fUpdateScopeCombo.setEnabled(fUpdateCheck.getSelection());
View Full Code Here

Examples of org.eclipse.swt.widgets.Combo

    /* Filter Settings */
    Label filterLabel = new Label(group, SWT.None);
    filterLabel.setText("Filter News: ");

    fFilterCombo = new Combo(group, SWT.BORDER | SWT.READ_ONLY);
    fFilterCombo.setLayoutData(new GridData(SWT.FILL, SWT.BEGINNING, false, false));
    fFilterCombo.add("Use Default");

    NewsFilter.Type[] filters = NewsFilter.Type.values();
    for (NewsFilter.Type filter : filters)
      fFilterCombo.add(filter.getName());

    fFilterCombo.select(fGlobalScope.getInteger(DefaultPreferences.BM_NEWS_FILTERING) + 1);
    fFilterCombo.setVisibleItemCount(fFilterCombo.getItemCount());

    /* Group Settings */
    Label groupLabel = new Label(group, SWT.None);
    groupLabel.setText("Group News: ");

    fGroupCombo = new Combo(group, SWT.BORDER | SWT.READ_ONLY);
    fGroupCombo.setLayoutData(new GridData(SWT.FILL, SWT.BEGINNING, false, false));
    fGroupCombo.add("Use Default");

    NewsGrouping.Type[] groups = NewsGrouping.Type.values();
    for (NewsGrouping.Type groupT : groups)
View Full Code Here

Examples of org.eclipse.swt.widgets.Combo

        });
      }

      /* Combo */
      else if (c instanceof Combo) {
        Combo combo = (Combo) c;
        combo.addSelectionListener(new SelectionAdapter() {
          @Override
          public void widgetSelected(SelectionEvent e) {
            run.run();
          }
        });
View Full Code Here

Examples of org.eclipse.swt.widgets.Combo

    /* Filter Settings */
    Label filterLabel = new Label(container, SWT.None);
    filterLabel.setText(Messages.DisplayPropertyPage_FILTER);

    fFilterCombo = new Combo(container, SWT.BORDER | SWT.READ_ONLY);
    fFilterCombo.setLayoutData(new GridData(SWT.FILL, SWT.BEGINNING, false, false));

    NewsFilter.Type[] filters = NewsFilter.Type.values();
    for (NewsFilter.Type filter : filters)
      fFilterCombo.add(filter.getName());

    fFilterCombo.select(fPrefSelectedFilter);
    fFilterCombo.setVisibleItemCount(fFilterCombo.getItemCount());

    /* Group Settings */
    Label groupLabel = new Label(container, SWT.None);
    groupLabel.setText(Messages.DisplayPropertyPage_GROUP);

    fGroupCombo = new Combo(container, SWT.BORDER | SWT.READ_ONLY);
    fGroupCombo.setLayoutData(new GridData(SWT.FILL, SWT.BEGINNING, false, false));

    NewsGrouping.Type[] groups = NewsGrouping.Type.values();
    for (NewsGrouping.Type group : groups)
      fGroupCombo.add(group.getName());
View Full Code Here

Examples of org.eclipse.swt.widgets.Combo

      else if (fUpdateIntervalScope == HOURS_SCOPE)
        fReloadSpinner.setSelection((int) (fPrefUpdateInterval / HOUR_IN_SECONDS));
      else if (fUpdateIntervalScope == DAYS_SCOPE)
        fReloadSpinner.setSelection((int) (fPrefUpdateInterval / DAY_IN_SECONDS));

      fReloadCombo = new Combo(autoReloadContainer, SWT.READ_ONLY);
      fReloadCombo.add(Messages.GeneralPropertyPage_MINUTES);
      fReloadCombo.add(Messages.GeneralPropertyPage_HOURS);
      fReloadCombo.add(Messages.GeneralPropertyPage_DAYS);
      fReloadCombo.select(fUpdateIntervalScope);
      fReloadCombo.setEnabled(fPrefUpdateIntervalState);
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.