/**
   * Initializes itself from the dialog settings with the same state as at the previous invocation.
   */
  protected void readSettings(IDialogSettings section) {
    try {
      int x = section.getInt(SETTINGS_X_POS);
      int y = section.getInt(SETTINGS_Y_POS);
      fLocation = new Point(x, y);
      int width = section.getInt(SETTINGS_WIDTH);
      int height = section.getInt(SETTINGS_HEIGHT);
      fSize = new Point(width, height);
    } catch (NumberFormatException e) {
      fLocation = null;
      fSize = null;
    }

    if (section.getBoolean(SETTINGS_SHOW_NAMESPACES)) {
      Integer typeObject = new Integer(ICElement.C_NAMESPACE);
      if (fKnownTypes.contains(typeObject)) fFilterMatcher.getVisibleTypes().add(typeObject);
    }
    if (section.getBoolean(SETTINGS_SHOW_CLASSES)) {
      Integer typeObject = new Integer(ICElement.C_CLASS);
      if (fKnownTypes.contains(typeObject)) fFilterMatcher.getVisibleTypes().add(typeObject);
    }
    if (section.getBoolean(SETTINGS_SHOW_STRUCTS)) {
      Integer typeObject = new Integer(ICElement.C_STRUCT);
      if (fKnownTypes.contains(typeObject)) fFilterMatcher.getVisibleTypes().add(typeObject);
    }
    if (section.getBoolean(SETTINGS_SHOW_TYPEDEFS)) {
      Integer typeObject = new Integer(ICElement.C_TYPEDEF);
      if (fKnownTypes.contains(typeObject)) fFilterMatcher.getVisibleTypes().add(typeObject);
    }
    if (section.getBoolean(SETTINGS_SHOW_ENUMS)) {
      Integer typeObject = new Integer(ICElement.C_ENUMERATION);
      if (fKnownTypes.contains(typeObject)) fFilterMatcher.getVisibleTypes().add(typeObject);
    }
    if (section.getBoolean(SETTINGS_SHOW_UNIONS)) {
      Integer typeObject = new Integer(ICElement.C_UNION);
      if (fKnownTypes.contains(typeObject)) fFilterMatcher.getVisibleTypes().add(typeObject);
    }
    if (section.getBoolean(SETTINGS_SHOW_FUNCTIONS)) {
      Integer typeObject = new Integer(ICElement.C_FUNCTION);
      if (fKnownTypes.contains(typeObject)) fFilterMatcher.getVisibleTypes().add(typeObject);
    }
    if (section.getBoolean(SETTINGS_SHOW_VARIABLES)) {
      Integer typeObject = new Integer(ICElement.C_VARIABLE);
      if (fKnownTypes.contains(typeObject)) fFilterMatcher.getVisibleTypes().add(typeObject);
    }
    if (section.getBoolean(SETTINGS_SHOW_ENUMERATORS)) {
      Integer typeObject = new Integer(ICElement.C_ENUMERATOR);
      if (fKnownTypes.contains(typeObject)) fFilterMatcher.getVisibleTypes().add(typeObject);
    }
    if (section.getBoolean(SETTINGS_SHOW_MACROS)) {
      Integer typeObject = new Integer(ICElement.C_MACRO);
      if (fKnownTypes.contains(typeObject)) fFilterMatcher.getVisibleTypes().add(typeObject);
    }
    if (showLowLevelFilter()) {
      fFilterMatcher.setShowLowLevelTypes(section.getBoolean(SETTINGS_SHOW_LOWLEVEL));
    } else {
      fFilterMatcher.setShowLowLevelTypes(true);
    }
  }
 private void initSize(IDialogSettings settings) {
   fSettings = settings.getSection(DIALOG_SETTINGS);
   if (fSettings == null) {
     fSettings = new DialogSettings(DIALOG_SETTINGS);
     settings.addSection(fSettings);
     fSettings.put(WIDTH, 600);
     fSettings.put(HEIGHT, 400);
   }
   fPreviewWidth = 600;
   fPreviewHeight = 400;
   try {
     fPreviewWidth = fSettings.getInt(WIDTH);
     fPreviewHeight = fSettings.getInt(HEIGHT);
   } catch (NumberFormatException e) {
   }
 }
  public static SearchPattern create(final IDialogSettings settings) {
    String loadedSearchString = settings.get("searchString");
    boolean loadedIsCaseSensitive = settings.getBoolean("isCaseSensitive");
    boolean loadedIsRegularExpression = settings.getBoolean("isRegularExpression");

    SortedMap<String, Boolean> loadedEvents = new TreeMap<String, Boolean>();
    for (String entry : Constants.EVENT_CATEGORIES.keySet()) {
      loadedEvents.put(entry, settings.getBoolean(entry));
    }

    Map<Field, Boolean> loadedLimitTo = new HashMap<Field, Boolean>();
    loadedLimitTo.put(Field.SOURCE_INFO, settings.getBoolean(Field.SOURCE_INFO.toString()));
    loadedLimitTo.put(Field.MESSAGE, settings.getBoolean(Field.MESSAGE.toString()));

    FilterPattern loadedFilterPattern =
        new FilterPattern(
            loadedSearchString, loadedLimitTo, loadedIsCaseSensitive, loadedIsRegularExpression);
    loadedFilterPattern.setEventsToFilter(loadedEvents, true, false);

    String[] wsIds = settings.getArray("workingSets"); // $NON-NLS-1$
    IWorkingSet[] workingSets = null;
    if (wsIds != null && wsIds.length > 0) {
      IWorkingSetManager workingSetManager = PlatformUI.getWorkbench().getWorkingSetManager();
      workingSets = new IWorkingSet[wsIds.length];
      for (int i = 0; workingSets != null && i < wsIds.length; i++) {
        workingSets[i] = workingSetManager.getWorkingSet(wsIds[i]);
        if (workingSets[i] == null) {
          workingSets = null;
        }
      }
    }

    return new SearchPattern(loadedFilterPattern, settings.getInt("scope"), workingSets);
  }
Exemple #4
0
    public static SearchPatternData create(IDialogSettings settings) {
      String textPattern = settings.get("textPattern"); // $NON-NLS-1$
      String[] wsIds = settings.getArray("workingSets"); // $NON-NLS-1$
      IWorkingSet[] workingSets = null;
      if (wsIds != null && wsIds.length > 0) {
        IWorkingSetManager workingSetManager = PlatformUI.getWorkbench().getWorkingSetManager();
        workingSets = new IWorkingSet[wsIds.length];
        for (int i = 0; workingSets != null && i < wsIds.length; i++) {
          workingSets[i] = workingSetManager.getWorkingSet(wsIds[i]);
          if (workingSets[i] == null) {
            workingSets = null;
          }
        }
      }
      String[] fileNamePatterns = settings.getArray("fileNamePatterns"); // $NON-NLS-1$
      if (fileNamePatterns == null) {
        fileNamePatterns = new String[0];
      }
      try {
        int scope = settings.getInt("scope"); // $NON-NLS-1$
        boolean isRegExSearch = settings.getBoolean("isRegExSearch"); // $NON-NLS-1$
        boolean ignoreCase = settings.getBoolean("ignoreCase"); // $NON-NLS-1$

        return new SearchPatternData(
            textPattern, !ignoreCase, isRegExSearch, fileNamePatterns, scope, workingSets);
      } catch (NumberFormatException e) {
        return null;
      }
    }
 /**
  * Returns an integer value in the given dialog settings or -1 if none.
  *
  * @param settings dialog settings
  * @param key key
  * @return value or -1 if not present
  */
 private int getIntSetting(IDialogSettings settings, String key) {
   try {
     return settings.getInt(key);
   } catch (NumberFormatException e) {
     return -1;
   }
 }
 private Point getInitialSizeFromDialogSettings() {
   if (settings != null) {
     IDialogSettings bounds =
         settings.getSection(dialogIdentifier + "." + DIALOG_BOUNDS_KEY); // $NON-NLS-1$
     if (bounds != null) {
       int width = 0;
       int height = 0;
       try {
         width = bounds.getInt(WIDTH);
         height = bounds.getInt(HEIGHT);
         if (width > 0 && height > 0) return new Point(width, height);
       } catch (NumberFormatException e) {
       }
     }
   }
   return null;
 }
 private int getLastSelectedJREKind() {
   int kind = PROJECT_RE;
   IDialogSettings settings = JavaPlugin.getDefault().getDialogSettings();
   if (settings.get(LAST_SELECTED_JRE_KIND2_KEY) != null) {
     kind = settings.getInt(LAST_SELECTED_JRE_KIND2_KEY);
   }
   return kind;
 }
 /** @see org.eclipse.jface.wizard.IWizard#createPageControls(org.eclipse.swt.widgets.Composite) */
 @Override
 public void createPageControls(Composite pageContainer) {
   if (importLicensed) {
     // If no dialog size settings, then use default of 500X500
     IDialogSettings settings = getDialogSettings();
     // Try to get height and width settings
     try {
       settings.getInt(WIDTH);
       settings.getInt(HEIGHT);
       // If height or width not found, set 500x500 default
     } catch (NumberFormatException e) {
       settings.put(WIDTH, 500);
       settings.put(HEIGHT, 500);
     }
     super.createPageControls(pageContainer);
   }
 }
    public static SearchPatternData create(final IDialogSettings settings) {
      final String pattern = settings.get("pattern");
      if (pattern.length() == 0) {
        return null;
      }
      final String[] wsIds = settings.getArray("workingSets");

      IWorkingSet[] workingSets = null;
      if (wsIds != null && wsIds.length > 0) {
        final IWorkingSetManager workingSetManager =
            PlatformUI.getWorkbench().getWorkingSetManager();
        workingSets = new IWorkingSet[wsIds.length];
        for (int i = 0; workingSets != null && i < wsIds.length; i++) {
          workingSets[i] = workingSetManager.getWorkingSet(wsIds[i]);
          if (workingSets[i] == null) {
            workingSets = null;
          }
        }
      }

      try {
        final int scope = settings.getInt("scope"); // $NON-NLS-1$
        LimitTo limitTo;
        try {
          limitTo = LimitTo.valueOf(settings.get("limitTo")); // //$NON-NLS-1$
        } catch (final IllegalArgumentException e) {
          limitTo = LimitTo.REFERENCES;
        }
        SearchFor searchFor;
        try {
          searchFor = SearchFor.valueOf(settings.get("searchFor")); // //$NON-NLS-1$
        } catch (final IllegalArgumentException e) {
          searchFor = SearchFor.FUNCTION;
        }
        final int includeMask = settings.getInt("includeMask"); // $NON-NLS-1$
        return new SearchPatternData(pattern, scope, limitTo, searchFor, workingSets, includeMask);

      } catch (final NumberFormatException e) {
      }
      return null;
    }
 private Point getInitialLocationFromDialogSettings() {
   if (settings != null) {
     IDialogSettings bounds =
         settings.getSection(dialogIdentifier + "." + DIALOG_BOUNDS_KEY); // $NON-NLS-1$
     if (bounds != null) {
       try {
         int x = bounds.getInt(X);
         int y = bounds.getInt(Y);
         if (x > 0 && y > 0) return new Point(x, y);
       } catch (NumberFormatException e) {
       }
     }
   }
   return null;
 }
  /**
   * Restores the column widths from dialog settings
   *
   * @param settings
   * @param qualifier
   */
  private void restoreColumnWidths(IDialogSettings settings, String qualifier) {
    int columnCount = fTable.getColumnCount();
    for (int i = 0; i < columnCount; i++) {
      int width = -1;
      try {
        width = settings.getInt(qualifier + ".columnWidth" + i); // $NON-NLS-1$
      } catch (NumberFormatException e) {
      }

      if ((width <= 0) || (i == fTable.getColumnCount() - 1)) {
        fTable.getColumn(i).pack();
      } else {
        fTable.getColumn(i).setWidth(width);
      }
    }
  }
  /** Initializes itself from the stored page settings. */
  private void readConfiguration() {
    final IDialogSettings s = getDialogSettings();

    try {
      final int historySize = s.getInt(STORE_HISTORY_SIZE);
      for (int i = 0; i < historySize; i++) {
        final IDialogSettings histSettings = s.getSection(STORE_HISTORY + i);
        if (histSettings != null) {
          final SearchPatternData data = SearchPatternData.create(histSettings);
          if (data != null) {
            fPreviousSearchPatterns.add(data);
          }
        }
      }
    } catch (final NumberFormatException e) {
      // ignore
    }
  }
  private void restoreColumnWidths(final IDialogSettings settings, final String qualifier) {
    int columnCount = table.getColumnCount();
    for (int i = 0; i < columnCount; i++) {
      int width = -1;

      try {
        width = settings.getInt(qualifier + KEY_COLUMN_WIDTH + i);
      } catch (final NumberFormatException numfex) {
        // ignored
      }

      if (width > 0) {
        // Only override column widths if the preference exists, otherwise,
        // we go with the column weights previously configured in the table's
        // layout.
        table.getColumn(i).setWidth(width);
      }
    }
  }
 /**
  * Restore table settings from the given dialog store using the given key.
  *
  * @param settings dialog settings store
  * @param qualifier key to restore settings from
  */
 public void restoreColumnSettings(IDialogSettings settings, String qualifier) {
   fVMList.getTable().layout(true);
   restoreColumnWidths(settings, qualifier);
   try {
     fSortColumn = settings.getInt(qualifier + ".sortColumn"); // $NON-NLS-1$
   } catch (NumberFormatException e) {
     fSortColumn = 1;
   }
   switch (fSortColumn) {
     case 1:
       sortByName();
       break;
     case 2:
       sortByLocation();
       break;
     case 3:
       sortByType();
       break;
   }
 }
  /**
   * @param parent
   * @param elementRenderer
   */
  public BrowseSelectorDialog(Shell parent, ILabelProvider elementRenderer) {
    super(parent, elementRenderer);

    //	Restore some dialog settings ...
    IDialogSettings settings = getDialogSettings();

    setMessage(Messages.BrowseSelectorDialog_0);
    setUpperListLabel(Messages.BrowseSelectorDialog_1);
    setBrowseFromLabel(Messages.BrowseSelectorDialog_2);

    try {
      VIEW_FROM = settings.getInt(VIEW_FROM_KEY);
    } catch (Exception ex) {
      VIEW_FROM = BID_FROM_IMPORTS_ONLY;
    }

    try {
      showDuplicates = settings.getBoolean(SHOW_DUPLICATES_KEY);
    } catch (Exception ex) {
      showDuplicates = false;
    }
  }
 public void restoreColumnSettings(final IDialogSettings settings, final String qualifier) {
   viewer.getTable().layout(true);
   restoreColumnWidths(settings, qualifier);
   try {
     sortColumn = settings.getInt(qualifier + KEY_SORT_COLUMN);
   } catch (final NumberFormatException numfex) {
     sortColumn = 1;
   }
   switch (sortColumn) {
     case 1:
       sortByUserIdentifier();
       break;
     case 2:
       sortByInstallVersion();
       break;
     case 3:
       sortByLibraryVersion();
       break;
     case 4:
       sortByExecutablePath();
       break;
   }
 }
Exemple #17
0
  /** Initializes itself from the stored page settings. */
  private void readConfiguration() {
    IDialogSettings s = getDialogSettings();
    fIsCaseSensitive = s.getBoolean(STORE_CASE_SENSITIVE);
    fIsRegExSearch = s.getBoolean(STORE_IS_REG_EX_SEARCH);
    fSearchDerived = s.getBoolean(STORE_SEARCH_DERIVED);

    try {
      int historySize = s.getInt(STORE_HISTORY_SIZE);
      for (int i = 0; i < historySize; i++) {
        IDialogSettings histSettings = s.getSection(STORE_HISTORY + i);
        if (histSettings != null) {
          SearchPatternData data = SearchPatternData.create(histSettings);
          if (data != null) {
            fPreviousSearchPatterns.add(data);
          }
        }
      }
    } catch (NumberFormatException e) {
      // ignore
    }

    Set<String> previousExtensions = new LinkedHashSet<String>(HISTORY_SIZE);
    IDialogSettings extensionsSettings = s.getSection(STORE_EXTENSIONS);
    if (extensionsSettings != null) {
      for (int i = 0; i < HISTORY_SIZE; i++) {
        String extension = extensionsSettings.get(Integer.toString(i));
        if (extension == null) {
          break;
        }
        previousExtensions.add(extension);
      }
      fPreviousExtensions = new String[previousExtensions.size()];
      previousExtensions.toArray(fPreviousExtensions);
    } else {
      fPreviousExtensions = getPreviousExtensionsOldStyle();
    }
  }
  /* (non-Javadoc)
   * @see org.eclipse.ui.part.WorkbenchPart#createPartControl(org.eclipse.swt.widgets.Composite)
   */
  @Override
  public void createPartControl(Composite parent) {
    viewer = new TreeViewer(parent, SWT.FULL_SELECTION | SWT.MULTI);
    viewer.getTree().setHeaderVisible(true);
    viewer.getTree().setLinesVisible(false);

    createContextMenu();

    model = new TradingSystemsViewModel(tradingSystemService);

    String[] columns = dialogSettings.getArray(COLUMNS);
    IDialogSettings namesSection = dialogSettings.getSection(COLUMN_NAMES);

    List<ViewColumn> list = new ArrayList<ViewColumn>();
    for (int i = 0; i < columns.length; i++) {
      String name = namesSection.get(columns[i]);
      list.add(new ViewColumn(name, activator.getDataProviderFactory(columns[i])));
    }
    model.setDataProviders(list);

    for (final TradingSystemItem item : model.getList()) {
      PropertyChangeSupport changeSupport =
          (PropertyChangeSupport) item.getTradingSystem().getAdapter(PropertyChangeSupport.class);
      if (changeSupport != null) {
        changeSupport.addPropertyChangeListener(
            new PropertyChangeListener() {

              @Override
              public void propertyChange(PropertyChangeEvent evt) {
                Display.getDefault()
                    .asyncExec(
                        new Runnable() {

                          @Override
                          public void run() {
                            if (viewer.getControl().isDisposed()) {
                              return;
                            }
                            viewer.refresh(item);
                          }
                        });
              }
            });
      }
    }

    final ObservableListTreeContentProvider contentProvider =
        new ObservableListTreeContentProvider(model, model);
    viewer.setContentProvider(contentProvider);

    IDialogSettings widthSettings = dialogSettings.getSection(COLUMN_WIDTHS);

    TreeViewerColumn viewerColumn = new TreeViewerColumn(viewer, SWT.NONE);

    int width = 300;
    if (widthSettings.get(LABEL_COLUMN) != null) {
      width = widthSettings.getInt(LABEL_COLUMN);
    }
    viewerColumn.getColumn().setWidth(width);

    viewerColumn.getColumn().addControlListener(columnControlListener);

    final List<IObservableMap> properties = new ArrayList<IObservableMap>();
    properties.add(new ViewerObservableMap(contentProvider.getKnownElements(), LABEL_COLUMN));
    for (ViewColumn column : model.getDataProviders()) {
      viewerColumn = new TreeViewerColumn(viewer, SWT.RIGHT);
      viewerColumn.getColumn().setText(column.getName());

      width = 100;
      if (widthSettings.get(column.getDataProviderFactory().getId()) != null) {
        width = widthSettings.getInt(column.getDataProviderFactory().getId());
      }
      viewerColumn.getColumn().setWidth(width);

      viewerColumn.getColumn().addControlListener(columnControlListener);
      column.addPropertyChangeListener(ViewColumn.PROP_NAME, columnPropertiesChangeListener);
      properties.add(
          new ViewerObservableMap(
              contentProvider.getKnownElements(), column.getDataProviderFactory().getId()));
    }
    createLabelProvider(properties.toArray(new IObservableMap[properties.size()]));

    model
        .getObservableDataProviders()
        .addListChangeListener(
            new IListChangeListener() {

              @Override
              public void handleListChange(ListChangeEvent event) {
                event.diff.accept(
                    new ListDiffVisitor() {

                      @Override
                      public void handleRemove(int index, Object element) {
                        TreeColumn treeColumn = viewer.getTree().getColumn(index + 1);
                        treeColumn.dispose();

                        ViewColumn column = (ViewColumn) element;
                        column.removePropertyChangeListener(
                            ViewColumn.PROP_NAME, columnPropertiesChangeListener);

                        IObservableMap observableMap = properties.remove(index + 1);
                        if (observableMap != null) {
                          observableMap.dispose();
                        }
                      }

                      @Override
                      public void handleAdd(int index, Object element) {
                        ViewColumn column = (ViewColumn) element;
                        TreeViewerColumn viewerColumn =
                            new TreeViewerColumn(viewer, SWT.RIGHT, index + 1);
                        viewerColumn.getColumn().setText(column.getName());

                        int width = 100;
                        IDialogSettings widthSettings = dialogSettings.getSection(COLUMN_WIDTHS);
                        if (widthSettings.get(column.getDataProviderFactory().getId()) != null) {
                          width = widthSettings.getInt(column.getDataProviderFactory().getId());
                        }
                        viewerColumn.getColumn().setWidth(width);

                        viewerColumn.getColumn().addControlListener(columnControlListener);
                        column.addPropertyChangeListener(
                            ViewColumn.PROP_NAME, columnPropertiesChangeListener);
                        properties.add(
                            index + 1,
                            new ViewerObservableMap(
                                contentProvider.getKnownElements(),
                                column.getDataProviderFactory().getId()));
                      }
                    });

                createLabelProvider(properties.toArray(new IObservableMap[properties.size()]));

                IDialogSettings namesSection = dialogSettings.getSection(COLUMN_NAMES);

                List<String> list = new ArrayList<String>();
                for (ViewColumn column : model.getDataProviders()) {
                  list.add(column.getDataProviderFactory().getId());
                  namesSection.put(column.getDataProviderFactory().getId(), column.getName());
                }
                dialogSettings.put(COLUMNS, list.toArray(new String[list.size()]));
              }
            });

    viewer.setComparator(new ViewerComparator());

    getSite().setSelectionProvider(viewer);

    viewer.setInput(model);
    viewer.expandAll();
  }
  void loadFrom(IRunnableContext runnableContext, IDialogSettings dialogSettings) {
    try {
      maxJobCount = dialogSettings.getInt("maxJobCount");
    } catch (NumberFormatException e) {
      maxJobCount = DEFAULT_THREADS_NUM;
    }
    String producerId = dialogSettings.get("producer");
    if (!CommonUtils.isEmpty(producerId)) {
      DataTransferNodeDescriptor producerNode =
          DataTransferRegistry.getInstance().getNodeById(producerId);
      if (producerNode != null) {
        this.producer = producerNode;
      }
    }

    if (consumerOptional) {
      DataTransferNodeDescriptor savedConsumer = null;
      String consumerId = dialogSettings.get("consumer");
      if (!CommonUtils.isEmpty(consumerId)) {
        DataTransferNodeDescriptor consumerNode =
            DataTransferRegistry.getInstance().getNodeById(consumerId);
        if (consumerNode != null) {
          savedConsumer = consumerNode;
        }
      }

      DataTransferProcessorDescriptor savedProcessor = null;
      if (savedConsumer != null) {
        String processorId = dialogSettings.get("processor");
        if (!CommonUtils.isEmpty(processorId)) {
          savedProcessor = savedConsumer.getProcessor(processorId);
        }
      }
      if (savedConsumer != null) {
        selectConsumer(savedConsumer, savedProcessor);
      }
    }

    // Load nodes' settings
    for (Map.Entry<Class, NodeSettings> entry : nodeSettings.entrySet()) {
      IDialogSettings nodeSection =
          DialogSettings.getOrCreateSection(dialogSettings, entry.getKey().getSimpleName());
      entry.getValue().settings.loadSettings(runnableContext, this, nodeSection);
    }
    IDialogSettings processorsSection = dialogSettings.getSection("processors");
    if (processorsSection != null) {
      for (IDialogSettings procSection : ArrayUtils.safeArray(processorsSection.getSections())) {
        String processorId = procSection.getName();
        String nodeId = procSection.get("@node");
        String propNamesId = procSection.get("@propNames");
        DataTransferNodeDescriptor node = DataTransferRegistry.getInstance().getNodeById(nodeId);
        if (node != null) {
          Map<Object, Object> props = new HashMap<>();
          DataTransferProcessorDescriptor nodeProcessor = node.getProcessor(processorId);
          if (nodeProcessor != null) {
            for (String prop : CommonUtils.splitString(propNamesId, ',')) {
              props.put(prop, procSection.get(prop));
            }
            processorPropsHistory.put(nodeProcessor, props);
            NodeSettings nodeSettings = this.nodeSettings.get(node.getNodeClass());
            if (nodeSettings != null) {}
          }
        }
      }
    }
  }
  private void loadDialogSettings() {
    IDialogSettings settings;
    IDialogSettings section;

    settings = SystemBrowserPlugin.getDefault().getDialogSettings();
    section = settings.getSection("PoolFilterDialog");
    if (section == null) {
      clearDialog();
      return;
    }

    targetCombo.setText(section.get("target"));
    poolIdText.setText(section.get("poolId"));
    tabFolder.setSelection(section.getInt("tab"));

    signalNumberFromText.setText(section.get("signalNumberFrom"));
    signalNumberToText.setText(section.get("signalNumberTo"));
    signalOwnerIdText.setText(section.get("signalOwnerId"));
    signalOwnerNameText.setText(section.get("signalOwnerName"));
    signalSenderIdText.setText(section.get("signalSenderId"));
    signalSenderNameText.setText(section.get("signalSenderName"));
    signalAddresseeIdText.setText(section.get("signalAddresseeId"));
    signalAddresseeNameText.setText(section.get("signalAddresseeName"));
    signalSizeFromText.setText(section.get("signalSizeFrom"));
    signalSizeToText.setText(section.get("signalSizeTo"));
    signalBufferSizeFromText.setText(section.get("signalBufferSizeFrom"));
    signalBufferSizeToText.setText(section.get("signalBufferSizeTo"));
    signalAddressFromText.setText(section.get("signalAddressFrom"));
    signalAddressToText.setText(section.get("signalAddressTo"));
    signalStatusCombo.setText(section.get("signalStatus"));

    signalNumberCheckbox.setSelection(section.getBoolean("signalNumberExclude"));
    signalOwnerIdCheckbox.setSelection(section.getBoolean("signalOwnerIdExclude"));
    signalOwnerNameCheckbox.setSelection(section.getBoolean("signalOwnerNameExclude"));
    signalSenderIdCheckbox.setSelection(section.getBoolean("signalSenderIdExclude"));
    signalSenderNameCheckbox.setSelection(section.getBoolean("signalSenderNameExclude"));
    signalAddresseeIdCheckbox.setSelection(section.getBoolean("signalAddresseeIdExclude"));
    signalAddresseeNameCheckbox.setSelection(section.getBoolean("signalAddresseeNameExclude"));
    signalSizeCheckbox.setSelection(section.getBoolean("signalSizeExclude"));
    signalBufferSizeCheckbox.setSelection(section.getBoolean("signalBufferSizeExclude"));
    signalAddressCheckbox.setSelection(section.getBoolean("signalAddressExclude"));
    signalStatusCheckbox.setSelection(section.getBoolean("signalStatusExclude"));

    stackOwnerIdText.setText(section.get("stackOwnerId"));
    stackOwnerNameText.setText(section.get("stackOwnerName"));
    stackSizeFromText.setText(section.get("stackSizeFrom"));
    stackSizeToText.setText(section.get("stackSizeTo"));
    stackBufferSizeFromText.setText(section.get("stackBufferSizeFrom"));
    stackBufferSizeToText.setText(section.get("stackBufferSizeTo"));
    stackAddressFromText.setText(section.get("stackAddressFrom"));
    stackAddressToText.setText(section.get("stackAddressTo"));
    stackUsedFromText.setText(section.get("stackUsedFrom"));
    stackUsedToText.setText(section.get("stackUsedTo"));
    stackUnusedFromText.setText(section.get("stackUnusedFrom"));
    stackUnusedToText.setText(section.get("stackUnusedTo"));

    stackOwnerIdCheckbox.setSelection(section.getBoolean("stackOwnerIdExclude"));
    stackOwnerNameCheckbox.setSelection(section.getBoolean("stackOwnerNameExclude"));
    stackSizeCheckbox.setSelection(section.getBoolean("stackSizeExclude"));
    stackBufferSizeCheckbox.setSelection(section.getBoolean("stackBufferSizeExclude"));
    stackAddressCheckbox.setSelection(section.getBoolean("stackAddressExclude"));
    stackUsedCheckbox.setSelection(section.getBoolean("stackUsedExclude"));
    stackUnusedCheckbox.setSelection(section.getBoolean("stackUnusedExclude"));
  }