/* (non-Javadoc)
  * @see org.eclipse.swt.widgets.Control#setEnabled(boolean)
  */
 public void setEnabled(boolean enabled) {
   fTree.getControl().setEnabled(enabled);
   if (enabled) {
     updateButtons();
   } else {
     fSelectButton.setEnabled(false);
     fSelectAllButton.setEnabled(false);
     fDeselectButton.setEnabled(false);
     fDeselectAllButton.setEnabled(false);
     fSelectRequiredButton.setEnabled(false);
     fCountLabel.setText(""); // $NON-NLS-1$
   }
   fModeLabel.setEnabled(enabled);
   fPluginModeButton.setEnabled(enabled);
   fFeaureModeButton.setEnabled(enabled);
   fShowLabel.setEnabled(enabled);
   fShowPluginsButton.setEnabled(enabled);
   fShowSourceButton.setEnabled(enabled);
   boolean isPluginMode = !fFeaureModeButton.getSelection();
   fGroupLabel.setEnabled(enabled && isPluginMode);
   if (fGroupCombo != null) {
     fGroupCombo.setEnabled(enabled && isPluginMode);
   } else {
     fGroupComboPart.setEnabled(enabled && isPluginMode);
   }
 }
 protected void enableMinMax(boolean enable) {
   fMinOccurSpinner.setEnabled(enable);
   fMaxOccurSpinner.setEnabled(!fUnboundSelect.getSelection() && enable);
   fUnboundSelect.setEnabled(enable);
   fMinLabel.setEnabled(enable);
   fMaxLabel.setEnabled(enable);
 }
  /* (non-Javadoc)
   * @see org.eclipse.jface.dialogs.IconAndMessageDialog#createMessageArea(org.eclipse.swt.widgets.Composite)
   */
  @Override
  protected Control createMessageArea(Composite parent) {
    initializeDialogUnits(parent);

    Composite messageComposite = new Composite(parent, SWT.NONE);
    messageComposite.setFont(parent.getFont());
    GridLayout layout = new GridLayout();
    layout.numColumns = 1;
    layout.marginHeight = 0;
    layout.marginWidth = 0;
    layout.verticalSpacing = convertVerticalDLUsToPixels(IDialogConstants.VERTICAL_SPACING);
    layout.horizontalSpacing = convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_SPACING);
    messageComposite.setLayout(layout);
    messageComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));

    createLinkControl(messageComposite);

    int indent = convertWidthInCharsToPixels(3);

    fNotSortAllRadio.doFillIntoGrid(messageComposite, 1);
    LayoutUtil.setHorizontalIndent(fNotSortAllRadio.getSelectionButton(null), indent);

    fSortAllRadio.doFillIntoGrid(messageComposite, 1);
    LayoutUtil.setHorizontalIndent(fSortAllRadio.getSelectionButton(null), indent);

    final Composite warningComposite = new Composite(messageComposite, SWT.NONE);
    layout = new GridLayout();
    layout.numColumns = 2;
    layout.marginWidth = 0;
    layout.marginHeight = 0;
    warningComposite.setLayout(layout);
    warningComposite.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false));
    warningComposite.setFont(messageComposite.getFont());

    Image image = Dialog.getImage(Dialog.DLG_IMG_MESSAGE_WARNING);
    final Label imageLabel1 = new Label(warningComposite, SWT.LEFT | SWT.WRAP);
    imageLabel1.setImage(image);
    imageLabel1.setLayoutData(
        new GridData(GridData.BEGINNING, GridData.CENTER, false, false, 1, 1));

    final Label label = new Label(warningComposite, SWT.WRAP);
    label.setText(DialogsMessages.SortMembersMessageDialog_sort_warning_label);
    GridData gridData = new GridData(GridData.FILL, GridData.CENTER, true, false, 1, 1);
    gridData.widthHint = convertHorizontalDLUsToPixels(IDialogConstants.MINIMUM_MESSAGE_AREA_WIDTH);
    label.setLayoutData(gridData);
    label.setFont(warningComposite.getFont());

    fNotSortAllRadio.setDialogFieldListener(
        new IDialogFieldListener() {
          public void dialogFieldChanged(DialogField field) {
            imageLabel1.setEnabled(!fNotSortAllRadio.isSelected());
            label.setEnabled(!fNotSortAllRadio.isSelected());
          }
        });
    imageLabel1.setEnabled(!fNotSortAllRadio.isSelected());
    label.setEnabled(!fNotSortAllRadio.isSelected());

    return messageComposite;
  }
 public void enableFields() {
   wlIsIdempotentSat.setEnabled(hasOneTemporalField);
   wbIsIdempotentSat.setEnabled(hasOneTemporalField);
   wlToDateCol.setEnabled(hasOneTemporalField);
   wcbToDateCol.setEnabled(hasOneTemporalField);
   wlToDateMax.setEnabled(hasOneTemporalField);
   wToDateMax.setEnabled(hasOneTemporalField);
 }
 private void enableProjectTypeControls(boolean enabled) {
   left_label.setEnabled(enabled);
   right_label.setEnabled(enabled);
   tree.setEnabled(enabled);
   right.setEnabled(enabled);
   enabledCompositeChildren(right, enabled);
   show_sup.setEnabled(enabled);
 }
 private void activeSMTPCheck() {
   wlTimeOut.setEnabled(wSMTPCheck.getSelection());
   wTimeOut.setEnabled(wSMTPCheck.getSelection());
   wlDefaultSMTP.setEnabled(wSMTPCheck.getSelection());
   wDefaultSMTP.setEnabled(wSMTPCheck.getSelection());
   wleMailSender.setEnabled(wSMTPCheck.getSelection());
   weMailSender.setEnabled(wSMTPCheck.getSelection());
 }
  private void validateFolders() {
    boolean useFolders = fFoldersAsSourceFolder.getSelection();

    fSrcFolderNameText.setEnabled(useFolders);
    fBinFolderNameText.setEnabled(useFolders);
    fSrcFolderNameLabel.setEnabled(useFolders);
    fBinFolderNameLabel.setEnabled(useFolders);
    if (useFolders) {
      String srcName = fSrcFolderNameText.getText();
      String binName = fBinFolderNameText.getText();
      if (srcName.length() + binName.length() == 0) {
        updateStatus(
            new StatusInfo(
                IStatus.ERROR,
                PreferencesMessages.NewJavaProjectPreferencePage_folders_error_namesempty));
        return;
      }
      IWorkspace workspace = JavaPlugin.getWorkspace();
      IProject dmy = workspace.getRoot().getProject("project"); // $NON-NLS-1$

      IStatus status;
      IPath srcPath = dmy.getFullPath().append(srcName);
      if (srcName.length() != 0) {
        status = workspace.validatePath(srcPath.toString(), IResource.FOLDER);
        if (!status.isOK()) {
          String message =
              Messages.format(
                  PreferencesMessages.NewJavaProjectPreferencePage_folders_error_invalidsrcname,
                  status.getMessage());
          updateStatus(new StatusInfo(IStatus.ERROR, message));
          return;
        }
      }
      IPath binPath = dmy.getFullPath().append(binName);
      if (binName.length() != 0) {
        status = workspace.validatePath(binPath.toString(), IResource.FOLDER);
        if (!status.isOK()) {
          String message =
              Messages.format(
                  PreferencesMessages.NewJavaProjectPreferencePage_folders_error_invalidbinname,
                  status.getMessage());
          updateStatus(new StatusInfo(IStatus.ERROR, message));
          return;
        }
      }
      IClasspathEntry entry = JavaCore.newSourceEntry(srcPath);
      status =
          JavaConventions.validateClasspath(
              JavaCore.create(dmy), new IClasspathEntry[] {entry}, binPath);
      if (!status.isOK()) {
        String message = PreferencesMessages.NewJavaProjectPreferencePage_folders_error_invalidcp;
        updateStatus(new StatusInfo(IStatus.ERROR, message));
        return;
      }
    }
    updateStatus(new StatusInfo()); // set to OK
  }
  private void setMethod() {
    boolean activateBody = RestMeta.isActiveBody(wMethod.getText());
    boolean activateParams = RestMeta.isActiveParameters(wMethod.getText());

    wlBody.setEnabled(activateBody);
    wBody.setEnabled(activateBody);
    wlParameters.setEnabled(activateParams);
    wParameters.setEnabled(activateParams);
    wGet.setEnabled(activateParams);
  }
 private void refreshIncludeCatalog() {
   if (!Utils.isEmpty(wschemaname.getText())) {
     wincludeCatalog.setSelection(false);
     wlincludeCatalog.setEnabled(false);
     wincludeCatalog.setEnabled(false);
   } else {
     wlincludeCatalog.setEnabled(true);
     wincludeCatalog.setEnabled(true);
   }
 }
 private void ActivedynamicSchema() {
   wlSchemaField.setEnabled(wdynamicSchema.getSelection());
   wSchemaField.setEnabled(wdynamicSchema.getSelection());
   wPreview.setEnabled(!wdynamicSchema.getSelection());
   wlschemaname.setEnabled(!wdynamicSchema.getSelection());
   wschemaname.setEnabled(!wdynamicSchema.getSelection());
   if (wdynamicSchema.getSelection()) wincludeCatalog.setSelection(false);
   wlincludeCatalog.setEnabled(!wdynamicSchema.getSelection());
   wincludeCatalog.setEnabled(!wdynamicSchema.getSelection());
 }
 @Override
 public void setEnabled(boolean isEnabled) {
   keyStore.setEnabled(isEnabled, this);
   storekeyLabel.setEnabled(isEnabled);
   storekeyDec.setEnabled(isEnabled);
   aliasLabel.setEnabled(isEnabled);
   alias.setEnabled(isEnabled);
   passkeyLabel.setEnabled(isEnabled);
   passkeyDec.setEnabled(isEnabled);
 }
Exemple #12
0
 private void activeFields() {
   wlFields.setEnabled(wSelectFields.getSelection());
   wFields.setEnabled(wSelectFields.getSelection());
   wGet.setEnabled(wSelectFields.getSelection());
   wlValueTypes.setEnabled(wSelectValuesType.getSelection());
   wValueTypes.setEnabled(wSelectValuesType.getSelection());
   wlReplaceByValue.setEnabled(!wSelectFields.getSelection() && !wSelectValuesType.getSelection());
   wReplaceByValue.setEnabled(!wSelectFields.getSelection() && !wSelectValuesType.getSelection());
   wlMask.setEnabled(!wSelectFields.getSelection() && !wSelectValuesType.getSelection());
   wMask.setEnabled(!wSelectFields.getSelection() && !wSelectValuesType.getSelection());
 }
  private void enableControls() {

    final boolean isTagAutoOpen = _chkAutoOpenTagging.getSelection();
    final boolean isEnabled = true; // eclipse 3.7 supports this feature in OSX

    _chkAutoOpenTagging.setEnabled(isEnabled);
    _lblAutoOpenMS.setEnabled(isEnabled && isTagAutoOpen);
    _lblAutoTagDelay.setEnabled(isEnabled && isTagAutoOpen);
    _spinnerAutoOpenDelay.setEnabled(isEnabled && isTagAutoOpen);
    _chkTaggingAnimation.setEnabled(isEnabled && isTagAutoOpen);
  }
 private void updateGroup(boolean enabled) {
   fKeystoreLabel.setEnabled(enabled);
   fKeystoreText.setEnabled(enabled);
   fBrowseButton.setEnabled(enabled);
   fAliasLabel.setEnabled(enabled);
   fAliasText.setEnabled(enabled);
   fPasswordLabel.setEnabled(enabled);
   fPasswordText.setEnabled(enabled);
   fKeypassLabel.setEnabled(enabled);
   fKeypassText.setEnabled(enabled);
 }
  private void ActivewlXSLField() {

    wXSLField.setEnabled(wXSLFileField.getSelection());
    wlXSLField.setEnabled(wXSLFileField.getSelection());

    wXSLFilename.setEnabled(!wXSLFileField.getSelection());
    wlFilename.setEnabled(!wXSLFileField.getSelection());
    wbbFilename.setEnabled(!wXSLFileField.getSelection());
    wlXSLFieldIsAFile.setEnabled(wXSLFileField.getSelection());
    wXSLFieldIsAFile.setEnabled(wXSLFileField.getSelection());
    if (!wXSLFileField.getSelection()) {
      wXSLFieldIsAFile.setSelection(false);
    }
  }
 private void setExecutedEachInputRow() {
   wlFields.setEnabled(wEachRow.getSelection());
   wFields.setEnabled(wEachRow.getSelection());
   wlSetParams.setEnabled(wEachRow.getSelection());
   wSetParams.setEnabled(wEachRow.getSelection());
   if (!wEachRow.getSelection()) {
     wSetParams.setSelection(wEachRow.getSelection());
   }
   wlQuoteString.setEnabled(wEachRow.getSelection());
   wQuoteString.setEnabled(wEachRow.getSelection());
   if (!wEachRow.getSelection()) {
     wQuoteString.setSelection(wEachRow.getSelection());
   }
 }
  private void RefreshArgFromPrevious() {

    wlFields.setEnabled(!wPrevious.getSelection());
    wFields.setEnabled(!wPrevious.getSelection());
    wbdSourceFileFolder.setEnabled(!wPrevious.getSelection());
    wbeSourceFileFolder.setEnabled(!wPrevious.getSelection());
    wbSourceFileFolder.setEnabled(!wPrevious.getSelection());
    wbaSourceFileFolder.setEnabled(!wPrevious.getSelection());
    wlSourceFileFolder.setEnabled(!wPrevious.getSelection());
    wSourceFileFolder.setEnabled(!wPrevious.getSelection());

    wlWildcard.setEnabled(!wPrevious.getSelection());
    wWildcard.setEnabled(!wPrevious.getSelection());
    wbSourceDirectory.setEnabled(!wPrevious.getSelection());
  }
  private void updateServiceControlState(boolean controlState) {
    fLabelStyle.setEnabled(!controlState);
    fComboStyle.setEnabled(!controlState);
    fComboStyle.setBackground(controlState ? READONLY_BACKGROUNDCOLOR : fComboEnabledColor);

    updateControlState(fSOAPWSDLControls, controlState);
  }
  private Composite addOrderEntryChoices(Composite buttonComposite) {
    Label enterLabel = new Label(buttonComposite, SWT.NONE);
    enterLabel.setText(CodeInsertionDialog.insertionPoint);
    if (!enableInsertPosition) enterLabel.setEnabled(false);
    GridData gd = new GridData(GridData.HORIZONTAL_ALIGN_FILL);
    enterLabel.setLayoutData(gd);

    final Combo enterCombo = new Combo(buttonComposite, SWT.READ_ONLY);
    enterCombo.setVisibleItemCount(COMBO_VISIBLE_ITEM_COUNT);
    if (!enableInsertPosition) enterCombo.setEnabled(false);
    enterCombo.setItems(fLabels.toArray(new String[fLabels.size()]));
    enterCombo.select(currentPositionIndex);

    gd = new GridData(GridData.FILL_BOTH);
    gd.widthHint = convertWidthInCharsToPixels(60);
    enterCombo.setLayoutData(gd);
    enterCombo.addSelectionListener(
        new SelectionAdapter() {

          @Override
          public void widgetSelected(SelectionEvent e) {
            int index = enterCombo.getSelectionIndex();
            setInsertPosition(index);
            System.out.println(getElementPosition().toString());
          }
        });

    return buttonComposite;
  }
  void handleSyntaxColorListSelection() {
    final TokenHighlight item = getHighlight();

    fEnableCheckbox.setEnabled(item != null);
    fSyntaxForegroundColorEditor.getButton().setEnabled(item != null);
    fColorEditorLabel.setEnabled(item != null);
    fBoldCheckBox.setEnabled(item != null);
    fItalicCheckBox.setEnabled(item != null);
    fStrikethroughCheckBox.setEnabled(item != null);
    fUnderlineCheckBox.setEnabled(item != null);

    if (item == null) {
      return;
    }

    final HighlightStyle style = item.getStyle(fOverlayStore);
    fSyntaxForegroundColorEditor.setColorValue(style.getColor());
    fBoldCheckBox.setSelection(style.hasStyle(SWT.BOLD));
    fItalicCheckBox.setSelection(style.hasStyle(SWT.ITALIC));
    fStrikethroughCheckBox.setSelection(style.hasStyle(TextAttribute.STRIKETHROUGH));
    fUnderlineCheckBox.setSelection(style.hasStyle(TextAttribute.UNDERLINE));

    // if (item instanceof SemanticHighlightingColorListItem) {
    // fEnableCheckbox.setEnabled(true);
    // final boolean enable = getPreferenceStore().getBoolean(
    // ((SemanticHighlightingColorListItem) item).getEnableKey());
    // fEnableCheckbox.setSelection(enable);
    // fSyntaxForegroundColorEditor.getButton().setEnabled(enable);
    // fColorEditorLabel.setEnabled(enable);
    // fBoldCheckBox.setEnabled(enable);
    // fItalicCheckBox.setEnabled(enable);
    // fStrikethroughCheckBox.setEnabled(enable);
    // fUnderlineCheckBox.setEnabled(enable);
    // }
  }
 protected void enableFields() {
   boolean enabled = wRunningInParallel.getSelection();
   wlFileType.setVisible(enabled);
   wlFileType.setEnabled(enabled);
   wFileType.setVisible(enabled);
   wFileType.setEnabled(enabled);
 }
 private void setExecutedSetParams() {
   wlQuoteString.setEnabled(!wSetParams.getSelection());
   wQuoteString.setEnabled(!wSetParams.getSelection());
   if (wSetParams.getSelection()) {
     wQuoteString.setSelection(!wSetParams.getSelection());
   }
 }
 private void updateOperation() {
   wlMoveToFolderField.setEnabled(
       ZipFileMeta.getOperationTypeByDesc(wOperation.getText())
           == ZipFileMeta.OPERATION_TYPE_MOVE);
   wMoveToFolderField.setEnabled(
       ZipFileMeta.getOperationTypeByDesc(wOperation.getText())
           == ZipFileMeta.OPERATION_TYPE_MOVE);
 }
 private void activeSelectValuesType() {
   if (wSelectValuesType.getSelection()) {
     wSelectFields.setSelection(false);
     wFields.setEnabled(false);
     wlFields.setEnabled(false);
   }
   activeFields();
 }
 private void handleSyntaxColorListSelection() {
   HighlightingColorListItem item = getHighlightingColorListItem();
   if (item == null) {
     fEnableCheckbox.setEnabled(false);
     fSyntaxForegroundColorEditor.getButton().setEnabled(false);
     fColorEditorLabel.setEnabled(false);
     fBoldCheckBox.setEnabled(false);
     fItalicCheckBox.setEnabled(false);
     fStrikethroughCheckBox.setEnabled(false);
     fUnderlineCheckBox.setEnabled(false);
     return;
   }
   RGB rgb = PreferenceConverter.getColor(getPreferenceStore(), item.getColorKey());
   fSyntaxForegroundColorEditor.setColorValue(rgb);
   fBoldCheckBox.setSelection(getPreferenceStore().getBoolean(item.getBoldKey()));
   fItalicCheckBox.setSelection(getPreferenceStore().getBoolean(item.getItalicKey()));
   fStrikethroughCheckBox.setSelection(
       getPreferenceStore().getBoolean(item.getStrikethroughKey()));
   fUnderlineCheckBox.setSelection(getPreferenceStore().getBoolean(item.getUnderlineKey()));
   if (item instanceof SemanticHighlightingColorListItem) {
     boolean semanticHighlightingEnabled =
         getPreferenceStore().getBoolean(PreferenceConstants.EDITOR_SEMANTIC_HIGHLIGHTING_ENABLED);
     fEnableCheckbox.setEnabled(semanticHighlightingEnabled);
     boolean enable =
         semanticHighlightingEnabled
             && getPreferenceStore()
                 .getBoolean(((SemanticHighlightingColorListItem) item).getEnableKey());
     fEnableCheckbox.setSelection(enable);
     fSyntaxForegroundColorEditor.getButton().setEnabled(enable);
     fColorEditorLabel.setEnabled(enable);
     fBoldCheckBox.setEnabled(enable);
     fItalicCheckBox.setEnabled(enable);
     fStrikethroughCheckBox.setEnabled(enable);
     fUnderlineCheckBox.setEnabled(enable);
   } else {
     fSyntaxForegroundColorEditor.getButton().setEnabled(true);
     fColorEditorLabel.setEnabled(true);
     fBoldCheckBox.setEnabled(true);
     fItalicCheckBox.setEnabled(true);
     fStrikethroughCheckBox.setEnabled(true);
     fUnderlineCheckBox.setEnabled(true);
     fEnableCheckbox.setEnabled(false);
     fEnableCheckbox.setSelection(true);
   }
 }
  private void activeAlgorithm() {
    boolean enable =
        (FuzzyMatchMeta.getAlgorithmTypeByDesc(wAlgorithm.getText())
                == FuzzyMatchMeta.OPERATION_TYPE_LEVENSHTEIN
            || FuzzyMatchMeta.getAlgorithmTypeByDesc(wAlgorithm.getText())
                == FuzzyMatchMeta.OPERATION_TYPE_NEEDLEMAN_WUNSH
            || FuzzyMatchMeta.getAlgorithmTypeByDesc(wAlgorithm.getText())
                == FuzzyMatchMeta.OPERATION_TYPE_DAMERAU_LEVENSHTEIN
            || FuzzyMatchMeta.getAlgorithmTypeByDesc(wAlgorithm.getText())
                == FuzzyMatchMeta.OPERATION_TYPE_JARO
            || FuzzyMatchMeta.getAlgorithmTypeByDesc(wAlgorithm.getText())
                == FuzzyMatchMeta.OPERATION_TYPE_JARO_WINKLER
            || FuzzyMatchMeta.getAlgorithmTypeByDesc(wAlgorithm.getText())
                == FuzzyMatchMeta.OPERATION_TYPE_PAIR_SIMILARITY);

    wlgetCloserValue.setEnabled(enable);
    wgetCloserValue.setEnabled(enable);
    wlminValue.setEnabled(enable);
    wminValue.setEnabled(enable);
    wlmaxValue.setEnabled(enable);
    wmaxValue.setEnabled(enable);

    if (FuzzyMatchMeta.getAlgorithmTypeByDesc(wAlgorithm.getText())
            == FuzzyMatchMeta.OPERATION_TYPE_JARO
        || FuzzyMatchMeta.getAlgorithmTypeByDesc(wAlgorithm.getText())
            == FuzzyMatchMeta.OPERATION_TYPE_JARO_WINKLER
        || FuzzyMatchMeta.getAlgorithmTypeByDesc(wAlgorithm.getText())
            == FuzzyMatchMeta.OPERATION_TYPE_PAIR_SIMILARITY) {
      if (Const.toDouble(transMeta.environmentSubstitute(wminValue.getText()), 0) > 1) {
        wminValue.setText(String.valueOf(1));
      }
      if (Const.toDouble(transMeta.environmentSubstitute(wmaxValue.getText()), 0) > 1) {
        wmaxValue.setText(String.valueOf(1));
      }
    }

    boolean enableCaseSensitive =
        (FuzzyMatchMeta.getAlgorithmTypeByDesc(wAlgorithm.getText())
                == FuzzyMatchMeta.OPERATION_TYPE_LEVENSHTEIN
            || FuzzyMatchMeta.getAlgorithmTypeByDesc(wAlgorithm.getText())
                == FuzzyMatchMeta.OPERATION_TYPE_DAMERAU_LEVENSHTEIN);
    wlcaseSensitive.setEnabled(enableCaseSensitive);
    wcaseSensitive.setEnabled(enableCaseSensitive);
    activegetCloserValue();
  }
  private void enableControls() {

    final boolean isRepeated = _spinnerRepeatedSmoothing.getSelection() != 0;

    _lblRepeatedTau.setEnabled(isRepeated);

    _spinnerPulseTau.setEnabled(_chkIsPulseSmoothing.getSelection());
    _spinnerRepeatedTau.setEnabled(isRepeated);
  }
  // Réinitialise la table des paramètres
  private void clearTables() {

    Table paramsTable = wParams.table;
    paramsTable.removeAll();

    if (wInputFormat.getText() != null && !wInputFormat.getText().isEmpty()) {

      String inputFormatKey = getFormatKey(wInputFormat.getText());

      int i = 0;
      for (GisInputFormatParameterDef parameterDef :
          input.getInputFormatDefs().get(inputFormatKey).getParameterDefs()) {

        TableItem tableItem = new TableItem(paramsTable, SWT.NONE);
        tableItem.setText(0, String.valueOf(i));
        tableItem.setText(1, getParamLabel(parameterDef.getKey()));
        tableItem.setText(
            2,
            BaseMessages.getString(
                PKG,
                "GisFileInput.Params.Required."
                    + String.valueOf(parameterDef.isRequired()).toUpperCase()
                    + ".Label"));
        String defaultValue = parameterDef.getDefaultValue();
        if (defaultValue != null && !defaultValue.isEmpty()) {

          String value = getParamValueLabel(parameterDef.getDefaultValue());
          tableItem.setText(3, value);
        }
        i++;
      }

      wParams.setRowNums();
      if (wParams.nrNonEmpty() > 0) {
        wlParams.setEnabled(true);
        wParams.setEnabled(true);
      } else {
        wlParams.setEnabled(false);
        wParams.setEnabled(false);
      }
    }

    wStepname.selectAll();
  }
 public void setDisabled(boolean disabled) {
   this.disabled = disabled;
   if (label != null) {
     if (!label.isDisposed()) {
       label.setEnabled(!disabled);
     }
   } else {
     cLabel.setEnabled(!disabled);
   }
 }
Exemple #30
0
 protected void enableReferenceTools(boolean b) {
   combo1.setEnabled(b);
   combo2.setEnabled(b);
   label3.setEnabled(b);
   if (appropriateAlphabetToBeDetected) {
     selectAppropriateAlphabet();
     appropriateAlphabetToBeDetected = false;
   }
   // btnReferenceTools.setSelection(b);
 }