private void createFileNameControls(Composite composite, int columns) {
    fileNameField.doFillIntoGrid(composite, columns - 1);
    DialogField.createEmptySpace(composite);

    setFieldWidthHint(fileNameField);
    Text text = fileNameField.getTextControl(null);
    LayoutUtil.setHorizontalGrabbing(text);
  }
  private void createPageElementsControls(Composite composite, int nColumns) {
    Control labelControl = hostPageElementsButtons.getLabelControl(composite);
    LayoutUtil.setHorizontalSpan(labelControl, nColumns);

    DialogField.createEmptySpace(composite);

    Control buttonGroup = hostPageElementsButtons.getSelectionButtonsGroup(composite);
    LayoutUtil.setHorizontalSpan(buttonGroup, nColumns - 1);
  }
 private boolean canEdit(DialogField field, List<ProcessorOption> selectedElements) {
   if (!field.isEnabled()) return false;
   return selectedElements.size() == 1;
 }