Examples of Combo


Examples of org.eclipse.swt.widgets.Combo

      }
    });
  }

  private void createSpecifierCombo() {
    final Combo specifierCombo = new Combo(this, SWT.BORDER | SWT.READ_ONLY);
    specifierCombo.setLayoutData(new GridData(SWT.BEGINNING, SWT.CENTER, false, true));
    ((GridData) specifierCombo.getLayoutData()).widthHint = Application.IS_WINDOWS ? 90 : 160;
    specifierCombo.setVisibleItemCount(100);

    fSpecifierViewer = new ComboViewer(specifierCombo);
    fSpecifierViewer.setContentProvider(new ComboContentProvider());
    fSpecifierViewer.setLabelProvider(new ComboLabelProvider());
    fSpecifierViewer.setInput(fCondition.getField());

    /* Select the Condition's Specifier */
    if (fCondition.getSpecifier() != null)
      fSpecifierViewer.setSelection(new StructuredSelection(fCondition.getSpecifier()));

    /* Make sure to at least select the first item */
    if (fSpecifierViewer.getSelection().isEmpty())
      fSpecifierViewer.getCombo().select(0);

    specifierCombo.setToolTipText(getSpecifierTooltip((IStructuredSelection) fSpecifierViewer.getSelection()));

    /* Listen to Selection Changes in the Field-Viewer */
    fFieldViewer.addSelectionChangedListener(new ISelectionChangedListener() {
      public void selectionChanged(SelectionChangedEvent event) {
        IStructuredSelection selection = (IStructuredSelection) event.getSelection();
        if (!selection.isEmpty()) {

          /* Remember old Selection */
          ISelection oldSelection = fSpecifierViewer.getSelection();

          /* Set Field as Input */
          ISearchField field = (ISearchField) selection.getFirstElement();
          fSpecifierViewer.setInput(field);

          /* Try keeping the selection */
          fSpecifierViewer.setSelection(oldSelection);
          if (fSpecifierViewer.getCombo().getSelectionIndex() == -1)
            selectFirstItem(fSpecifierViewer);
        }
      }
    });

    /* Listen to Changes */
    fSpecifierViewer.addSelectionChangedListener(new ISelectionChangedListener() {
      public void selectionChanged(SelectionChangedEvent event) {
        fModified = true;
        specifierCombo.setToolTipText(getSpecifierTooltip((IStructuredSelection) event.getSelection()));
      }
    });
  }
View Full Code Here

Examples of org.eclipse.swt.widgets.Combo

      final Spinner spinner = new Spinner(container, SWT.BORDER);
      spinner.setLayoutData(new GridData(SWT.FILL, SWT.BEGINNING, true, false));
      spinner.setMinimum(1);
      spinner.setMaximum(1000000);

      final Combo combo = new Combo(container, SWT.BORDER | SWT.READ_ONLY);
      combo.add(Messages.SearchConditionItem_DAYS);
      combo.add(Messages.SearchConditionItem_HOURS);
      combo.add(Messages.SearchConditionItem_MINUTES);

      Listener listener = new Listener() {
        public void handleEvent(Event event) {
          fInputValue = getAgeValue(spinner, combo);

          if (!fInputValue.equals(input))
            fModified = true;
        }
      };
      spinner.addListener(SWT.Modify, listener);
      combo.addListener(SWT.Modify, listener);

      /* Pre-Select input if given */
      Object presetInput = (input == null) ? fInputValue : input;
      if (presetInput != null && presetInput instanceof Integer) {
        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);
          combo.select(1);
        }

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

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

      /* Update Input Value */
      fInputValue = getAgeValue(spinner, combo);
    }

    /* Create new Input Field based on search-value-type */
    else {
      switch (field.getSearchValueType().getId()) {

        /* Type: Boolean */
        case ISearchValueType.BOOLEAN: {
          final Combo combo = new Combo(inputField, SWT.BORDER | SWT.READ_ONLY);
          combo.add(Messages.SearchConditionItem_TRUE);
          combo.add(Messages.SearchConditionItem_FALSE);
          combo.addListener(SWT.Modify, new Listener() {
            public void handleEvent(Event event) {
              fInputValue = Boolean.valueOf(combo.getItem(combo.getSelectionIndex()));

              if (!fInputValue.equals(input))
                fModified = true;
            }
          });

          /* 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;
        }

          /* Type: Date / Time */
 
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(Messages.FeedsPreferencePage_MINUTES);
    fUpdateScopeCombo.add(Messages.FeedsPreferencePage_HOURS);
    fUpdateScopeCombo.add(Messages.FeedsPreferencePage_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(Messages.FeedsPreferencePage_FILTER_NEWS);

    fFilterCombo = new Combo(group, 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(ModelUtils.loadIntegerValueWithFallback(fGlobalScope, DefaultPreferences.BM_NEWS_FILTERING, fGlobalScope, DefaultPreferences.FV_FILTER_TYPE));
    fFilterCombo.setVisibleItemCount(fFilterCombo.getItemCount());

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

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

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

Examples of org.eclipse.swt.widgets.Combo

    Label lblNewLabel_4 = new Label(gpGlobalSettings, SWT.NONE);
    lblNewLabel_4.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
    lblNewLabel_4.setBackground(SWTResourceManager.getColor(SWT.COLOR_TITLE_INACTIVE_BACKGROUND_GRADIENT));
    lblNewLabel_4.setText("Licence Type");
   
    Combo cbGlobalLicenceType = new Combo(gpGlobalSettings, SWT.NONE);
    cbGlobalLicenceType.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
    cbGlobalLicenceType.setItems(new String[] {"GPL", "Commercial"});
    cbGlobalLicenceType.setVisibleItemCount(2);
   
    Label lblNewLabel_5 = new Label(gpGlobalSettings, SWT.NONE);
    lblNewLabel_5.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
    lblNewLabel_5.setBackground(SWTResourceManager.getColor(SWT.COLOR_TITLE_INACTIVE_BACKGROUND_GRADIENT));
    lblNewLabel_5.setText("Allowed Hosts");
   
    edGlobalAllowedHosts = new Text(gpGlobalSettings, SWT.BORDER);
    edGlobalAllowedHosts.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
   
    Label lblNewLabel_6 = new Label(gpGlobalSettings, SWT.NONE);
    lblNewLabel_6.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
    lblNewLabel_6.setBackground(SWTResourceManager.getColor(SWT.COLOR_TITLE_INACTIVE_BACKGROUND_GRADIENT));
    lblNewLabel_6.setText("Install Path");
   
    edGlobalInstallPath = new Text(gpGlobalSettings, SWT.BORDER);
    edGlobalInstallPath.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
   
    Label lblNewLabel_7 = new Label(gpGlobalSettings, SWT.NONE);
    lblNewLabel_7.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
    lblNewLabel_7.setBackground(SWTResourceManager.getColor(SWT.COLOR_TITLE_INACTIVE_BACKGROUND_GRADIENT));
    lblNewLabel_7.setText("Configuration Path");
   
    edGlobalConfigurationPath = new Text(gpGlobalSettings, SWT.BORDER);
    edGlobalConfigurationPath.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
    new Label(gpGlobalSettings, SWT.NONE);
    new Label(gpGlobalSettings, SWT.NONE);
   
    TabFolder tabFolder = new TabFolder(gpGlobalSettings, SWT.NONE);
    tabFolder.setBackground(SWTResourceManager.getColor(SWT.COLOR_INFO_BACKGROUND));
    GridData gd_tabFolder = new GridData(SWT.FILL, SWT.CENTER, false, false, 2, 1);
    gd_tabFolder.heightHint = 251;
    tabFolder.setLayoutData(gd_tabFolder);
   
 
    TabItem tbtmFtp = new TabItem(tabFolder, SWT.NONE);
    tbtmFtp.setText("FTP");
   
    Group group = new Group(tabFolder, SWT.NONE);
    group.setBackground(SWTResourceManager.getColor(SWT.COLOR_LIST_BACKGROUND));
    tbtmFtp.setControl(group);
    group.setLayout(new GridLayout(2, false));
   
    Label lblPort = new Label(group, SWT.NONE);
    lblPort.setBackground(SWTResourceManager.getColor(SWT.COLOR_LIST_BACKGROUND));
    lblPort.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
    lblPort.setText("Port");
   
    edGlobalFTPPort = new Text(group, SWT.BORDER);
    edGlobalFTPPort.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
   
    Label lblUser = new Label(group, SWT.NONE);
    lblUser.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
    lblUser.setText("User");
   
    edGlobalFTPUser = new Text(group, SWT.BORDER);
    edGlobalFTPUser.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
   
    Label lblNewLabel_9 = new Label(group, SWT.NONE);
    lblNewLabel_9.setBackground(SWTResourceManager.getColor(SWT.COLOR_LIST_BACKGROUND));
    lblNewLabel_9.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
    lblNewLabel_9.setText("Password");
   
    edGlobalFTPPassword = new Text(group, SWT.BORDER | SWT.PASSWORD);
    edGlobalFTPPassword.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
   
    Label lblLocalDir = new Label(group, SWT.NONE);
    lblLocalDir.setBackground(SWTResourceManager.getColor(SWT.COLOR_LIST_BACKGROUND));
    lblLocalDir.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
    lblLocalDir.setText("Local dir");
   
    edGlobalFTPLocalDir = new Text(group, SWT.BORDER);
    edGlobalFTPLocalDir.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
   
    Label lblRemoteDir = new Label(group, SWT.NONE);
    lblRemoteDir.setBackground(SWTResourceManager.getColor(SWT.COLOR_LIST_BACKGROUND));
    lblRemoteDir.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
    lblRemoteDir.setText("Remote dir");
   
    edGlobalFTPRemoteDir = new Text(group, SWT.BORDER);
    edGlobalFTPRemoteDir.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
   
    TabItem tbtmSsh = new TabItem(tabFolder, SWT.NONE);
    tbtmSsh.setText("SSH");
   
    Group group_1 = new Group(tabFolder, SWT.NONE);
    group_1.setBackground(SWTResourceManager.getColor(SWT.COLOR_LIST_BACKGROUND));
    tbtmSsh.setControl(group_1);
    group_1.setLayout(new GridLayout(2, false));
   
    Label lblPort_1 = new Label(group_1, SWT.NONE);
    lblPort_1.setBackground(SWTResourceManager.getColor(SWT.COLOR_LIST_BACKGROUND));
    lblPort_1.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
    lblPort_1.setText("Port");
   
    edGlobalSSHPort = new Text(group_1, SWT.BORDER);
    edGlobalSSHPort.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
   
    Label lblNewLabel_11 = new Label(group_1, SWT.NONE);
    lblNewLabel_11.setBackground(SWTResourceManager.getColor(SWT.COLOR_LIST_BACKGROUND));
    lblNewLabel_11.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
    lblNewLabel_11.setText("User");
   
    edGlobalSSHUser = new Text(group_1, SWT.BORDER);
    edGlobalSSHUser.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
   
    Label lblAuthMethod = new Label(group_1, SWT.NONE);
    lblAuthMethod.setBackground(SWTResourceManager.getColor(SWT.COLOR_LIST_BACKGROUND));
    lblAuthMethod.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
    lblAuthMethod.setText("Auth method");
   
    Combo edGlobalSSHAuthMethod = new Combo(group_1, SWT.NONE);
    edGlobalSSHAuthMethod.setItems(new String[] {"password", "publickey"});
    edGlobalSSHAuthMethod.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
   
    Label lblNewLabel_12 = new Label(group_1, SWT.NONE);
    lblNewLabel_12.setBackground(SWTResourceManager.getColor(SWT.COLOR_LIST_BACKGROUND));
    lblNewLabel_12.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
    lblNewLabel_12.setText("Auth file");
   
    edGlobalSSHAuthFile = new Text(group_1, SWT.BORDER);
    edGlobalSSHAuthFile.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
   
    Label lblPassword = new Label(group_1, SWT.NONE);
    lblPassword.setBackground(SWTResourceManager.getColor(SWT.COLOR_LIST_BACKGROUND));
    lblPassword.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
    lblPassword.setText("Password");
   
    edGlobalSSHPassword = new Text(group_1, SWT.BORDER | SWT.PASSWORD);
    edGlobalSSHPassword.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
   
    Label lblSudopwd = new Label(group_1, SWT.NONE);
    lblSudopwd.setBackground(SWTResourceManager.getColor(SWT.COLOR_LIST_BACKGROUND));
    lblSudopwd.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
    lblSudopwd.setText("SudoPwd");
   
    edGlobalSSHSudoPassword = new Text(group_1, SWT.BORDER | SWT.PASSWORD);
    GridData gd_edGlobalSSHSudoPassword = new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1);
    gd_edGlobalSSHSudoPassword.heightHint = 17;
    edGlobalSSHSudoPassword.setLayoutData(gd_edGlobalSSHSudoPassword);
   
    Label lblCommand = new Label(group_1, SWT.NONE);
    lblCommand.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
    lblCommand.setText("Command");
   
    edGlobalSSHCommand = new Text(group_1, SWT.BORDER);
    edGlobalSSHCommand.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
   
    Group gpInstallationItem = new Group(shlJobSchedulerAgent, SWT.NONE);
    gpInstallationItem.setLayoutData(new GridData(SWT.LEFT, SWT.FILL, false, false, 1, 1));
    gpInstallationItem.setText("Installation Item");
    gpInstallationItem.setBackground(SWTResourceManager.getColor(SWT.COLOR_INFO_BACKGROUND));
    gpInstallationItem.setLayout(new GridLayout(2, false));
   
    Label label = new Label(gpInstallationItem, SWT.NONE);
    label.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
    label.setText("Scheduler ID");
    label.setBackground(SWTResourceManager.getColor(SWT.COLOR_INFO_BACKGROUND));
   
    edSchedulerId = new Text(gpInstallationItem, SWT.BORDER);
    GridData gd_edSchedulerId = new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1);
    gd_edSchedulerId.widthHint = 103;
    edSchedulerId.setLayoutData(gd_edSchedulerId);
   
    Label label_1 = new Label(gpInstallationItem, SWT.NONE);
    label_1.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
    label_1.setText("Host");
    label_1.setBackground(SWTResourceManager.getColor(SWT.COLOR_INFO_BACKGROUND));
   
    edHost = new Text(gpInstallationItem, SWT.BORDER);
    edHost.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
   
    Label label_2 = new Label(gpInstallationItem, SWT.NONE);
    label_2.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
    label_2.setText("Port");
    label_2.setBackground(SWTResourceManager.getColor(SWT.COLOR_INFO_BACKGROUND));
   
    edPort = new Text(gpInstallationItem, SWT.BORDER);
    edPort.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
   
    Label label_3 = new Label(gpInstallationItem, SWT.NONE);
    label_3.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
    label_3.setText("Licence Key");
    label_3.setBackground(SWTResourceManager.getColor(SWT.COLOR_INFO_BACKGROUND));
   
    edLicenceKey = new Text(gpInstallationItem, SWT.BORDER);
    edLicenceKey.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
   
    Label label_4 = new Label(gpInstallationItem, SWT.NONE);
    label_4.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
    label_4.setText("Licence Type");
    label_4.setBackground(SWTResourceManager.getColor(SWT.COLOR_INFO_BACKGROUND));
   
    Combo cbLicenceTyp = new Combo(gpInstallationItem, SWT.NONE);
    cbLicenceTyp.setVisibleItemCount(2);
    cbLicenceTyp.setItems(new String[] {"GPL", "Commercial"});
    cbLicenceTyp.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
   
    Label label_5 = new Label(gpInstallationItem, SWT.NONE);
    label_5.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
    label_5.setText("Allowed Hosts");
    label_5.setBackground(SWTResourceManager.getColor(SWT.COLOR_INFO_BACKGROUND));
   
    edAllowedHosts = new Text(gpInstallationItem, SWT.BORDER);
    edAllowedHosts.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
   
    Label label_6 = new Label(gpInstallationItem, SWT.NONE);
    label_6.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
    label_6.setText("Install Path");
    label_6.setBackground(SWTResourceManager.getColor(SWT.COLOR_INFO_BACKGROUND));
   
    edInstallPath = new Text(gpInstallationItem, SWT.BORDER);
    edInstallPath.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
   
    Label label_7 = new Label(gpInstallationItem, SWT.NONE);
    label_7.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
    label_7.setText("Configuration Path");
    label_7.setBackground(SWTResourceManager.getColor(SWT.COLOR_INFO_BACKGROUND));
   
    edConfigurationPath = new Text(gpInstallationItem, SWT.BORDER);
    edConfigurationPath.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
    new Label(gpInstallationItem, SWT.NONE);
    new Label(gpInstallationItem, SWT.NONE);
   
    TabFolder tabFolder_1 = new TabFolder(gpInstallationItem, SWT.NONE);
    GridData gd_tabFolder_1 = new GridData(SWT.FILL, SWT.CENTER, false, false, 2, 1);
    gd_tabFolder_1.heightHint = 251;
    tabFolder_1.setLayoutData(gd_tabFolder_1);
    tabFolder_1.setBackground(SWTResourceManager.getColor(SWT.COLOR_INFO_BACKGROUND));
   
    
    TabItem tbtmFtp_1 = new TabItem(tabFolder_1, SWT.NONE);
    tbtmFtp_1.setText("FTP");
   
    Group group_3 = new Group(tabFolder_1, SWT.NONE);
    group_3.setBackground(SWTResourceManager.getColor(SWT.COLOR_LIST_BACKGROUND));
    tbtmFtp_1.setControl(group_3);
    group_3.setLayout(new GridLayout(2, false));
   
    Label label_8 = new Label(group_3, SWT.NONE);
    label_8.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
    label_8.setText("Host");
    label_8.setBackground(SWTResourceManager.getColor(SWT.COLOR_LIST_BACKGROUND));
   
    edFTPHost = new Text(group_3, SWT.BORDER);
    edFTPHost.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
   
    Label label_9 = new Label(group_3, SWT.NONE);
    label_9.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
    label_9.setText("Port");
    label_9.setBackground(SWTResourceManager.getColor(SWT.COLOR_LIST_BACKGROUND));
   
    edFTPPort = new Text(group_3, SWT.BORDER);
    edFTPPort.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
   
    Label lblUser_1 = new Label(group_3, SWT.NONE);
    lblUser_1.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
    lblUser_1.setText("User");
   
    edFTPUser = new Text(group_3, SWT.BORDER);
    edFTPUser.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
   
    Label label_11 = new Label(group_3, SWT.NONE);
    label_11.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
    label_11.setText("Password");
    label_11.setBackground(SWTResourceManager.getColor(SWT.COLOR_LIST_BACKGROUND));
   
    edFTPPassword = new Text(group_3, SWT.BORDER | SWT.PASSWORD);
    edFTPPassword.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
   
    Label label_12 = new Label(group_3, SWT.NONE);
    label_12.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
    label_12.setText("Local dir");
    label_12.setBackground(SWTResourceManager.getColor(SWT.COLOR_LIST_BACKGROUND));
   
    edFTPLocalDir = new Text(group_3, SWT.BORDER);
    edFTPLocalDir.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
   
    Label label_13 = new Label(group_3, SWT.NONE);
    label_13.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
    label_13.setText("Remote dir");
    label_13.setBackground(SWTResourceManager.getColor(SWT.COLOR_LIST_BACKGROUND));
   
    edFTPRemoteDir = new Text(group_3, SWT.BORDER);
    edFTPRemoteDir.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
   
    TabItem tbtmSsh_1 = new TabItem(tabFolder_1, SWT.NONE);
    tbtmSsh_1.setText("SSH");
   
    Group group_4 = new Group(tabFolder_1, SWT.NONE);
    group_4.setBackground(SWTResourceManager.getColor(SWT.COLOR_LIST_BACKGROUND));
    tbtmSsh_1.setControl(group_4);
    group_4.setLayout(new GridLayout(2, false));
   
    Label label_14 = new Label(group_4, SWT.NONE);
    label_14.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
    label_14.setText("Host");
    label_14.setBackground(SWTResourceManager.getColor(SWT.COLOR_LIST_BACKGROUND));
   
    edSSHHost = new Text(group_4, SWT.BORDER);
    edSSHHost.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
   
    Label label_15 = new Label(group_4, SWT.NONE);
    label_15.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
    label_15.setText("Port");
    label_15.setBackground(SWTResourceManager.getColor(SWT.COLOR_LIST_BACKGROUND));
   
    edSSHPort = new Text(group_4, SWT.BORDER);
    edSSHPort.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
   
    Label label_16 = new Label(group_4, SWT.NONE);
    label_16.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
    label_16.setText("User");
    label_16.setBackground(SWTResourceManager.getColor(SWT.COLOR_LIST_BACKGROUND));
   
    edSSHUser = new Text(group_4, SWT.BORDER);
    edSSHUser.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
   
    Label label_17 = new Label(group_4, SWT.NONE);
    label_17.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
    label_17.setText("Auth method");
    label_17.setBackground(SWTResourceManager.getColor(SWT.COLOR_LIST_BACKGROUND));
   
    Combo edSSHAuthMethod = new Combo(group_4, SWT.NONE);
    edSSHAuthMethod.setItems(new String[] {"password", "publickey"});
    edSSHAuthMethod.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
   
    Label label_18 = new Label(group_4, SWT.NONE);
    label_18.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
    label_18.setText("Auth file");
    label_18.setBackground(SWTResourceManager.getColor(SWT.COLOR_LIST_BACKGROUND));
View Full Code Here

Examples of org.eclipse.swt.widgets.Combo


        final Label lblName = new Label(group, SWT.NONE);
        lblName.setText("Name");

        cboConnectname = new Combo(group, SWT.NONE);

        cboConnectname.setItems(listener.getProfileNames());
        cboConnectname.addModifyListener(new ModifyListener() {
          public void modifyText(final ModifyEvent e) {
            setEnabled();

          }
        });
        final GridData gridData_2 = new GridData(GridData.FILL, GridData.CENTER, true, false, 2, 1);
        cboConnectname.setLayoutData(gridData_2);
        cboConnectname.addSelectionListener(new SelectionAdapter() {
          public void widgetSelected(final SelectionEvent e) {
            //if( !cboConnectname.getText().equals(currProfile.get("name")))
            if( !cboConnectname.getText().equals(currProfile.getProfilename()))
              initForm();
          }
        });

        //if(!shell.isDisposed())
        //cboConnectname.setText(listener.getCurrProfileName());


        final Label protocolLabel = new Label(group, SWT.NONE);
        protocolLabel.setText("Protocol");

        cboProtokol = new Combo(group, SWT.NONE);
        cboProtokol.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false, 2, 1));
        cboProtokol.setItems(new String[] {"FTP", "SFTP"});

        cboProtokol.select(0);
View Full Code Here

Examples of org.eclipse.swt.widgets.Combo

    //gDescription.setText("Jobs and orders");
    gMain = new Group(sashForm, SWT.NONE);
    gMain.setText("Commands");
    gMain.setLayout(gridLayout);

    cExitcode = new Combo(gMain, SWT.NONE);
    cExitcode.setItems(new String[] {"error", "success", "SIGHUP", "SIGINT", "SIGQUIT", "SIGILL", "SIGTRAP", "SIGABRT", "SIGIOT", "SIGBUS", "SIGFPE", "SIGKILL", "SIGUSR1", "SIGSEGV", "SIGUSR2", "SIGPIPE", "SIGALRM", "SIGTERM", "SIGSTKFLT", "SIGCHLD", "SIGCONT", "SIGSTOP", "SIGTSTP", "SIGTTIN", "SIGTTOU", "SIGURG", "SIGXCPU", "SIGXFSZ", "SIGVTALRM", "SIGPROF", "SIGWINCH", "SIGPOLL", "SIGIO", "SIGPWR", "SIGSYS"});
    cExitcode.addModifyListener(new ModifyListener() {
      public void modifyText(final ModifyEvent e) {
        listener.setExitCode(cExitcode.getText(), updateTree);
        jobsAndOrdersGroup.setText("Job: " + listener.getName() + " " + listener.getExitCode() + " "
View Full Code Here

Examples of org.eclipse.swt.widgets.Combo

      txtTitle.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, false, false, 2, 1));

      final Label substitueLabel = new Label(scheduleGroup, SWT.NONE);
      substitueLabel.setText("Substitute");

      cboCombo = new Combo(scheduleGroup, SWT.NONE);
      cboCombo.addModifyListener(new ModifyListener() {
        public void modifyText(final ModifyEvent e) {
          if(!init)
            listener.setSubstitut(cboCombo.getText());
        }
View Full Code Here

Examples of org.eclipse.swt.widgets.Combo


      final Label lblName = new Label(group, SWT.NONE);
      lblName.setText("Name");

      cboConnectname = new Combo(group, SWT.NONE);
     
      cboConnectname.setItems(listener.getProfileNames());
      cboConnectname.addModifyListener(new ModifyListener() {
        public void modifyText(final ModifyEvent e) {
          setEnabled();

        }
      });
      cboConnectname.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false, 2, 1));
      cboConnectname.addSelectionListener(new SelectionAdapter() {
        public void widgetSelected(final SelectionEvent e) {
          if( !cboConnectname.getText().equals(currProfile.get("name")))
            initForm();
        }
      });
      cboConnectname.select(0);

      final Label protocolLabel = new Label(group, SWT.NONE);
      protocolLabel.setText("Protocol");

      cboProtokol = new Combo(group, SWT.NONE);
      cboProtokol.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false, 2, 1));
      cboProtokol.setItems(new String[] {"FTP", "SFTP"});
     
      cboProtokol.select(0);
View Full Code Here

Examples of org.eclipse.swt.widgets.Combo

      gridLayout.verticalSpacing = 0; // Generated
      gridLayout.marginWidth = 0; // Generated
      gridLayout.marginHeight = 0; // Generated
      gridLayout.horizontalSpacing = 0; // Generated

      cboProfile = new Combo(this, SWT.READ_ONLY | SWT.BORDER);
      cboProfile.addSelectionListener(new SelectionAdapter() {
        public void widgetSelected(final SelectionEvent e) {

          if(cboProfile.getText().length() > 0) {
            listener = (FTPDialogListener)cboProfile.getData();
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.