Skip to content

ConfigEditor.md

Andre Bossert edited this page Mar 18, 2017 · 1 revision

Feature Configuration Editor

Feature configuration editor allows to create feature configuration according to the specified feature model. See feauture model editor how to create a feauture model.

Feature Modeling Perspective

It is recommended to switch to Feature Modeling Perspective which is available from Menu > Window > Open Perspective > Other. This perspective provides collection of standard views and their layout.

Creating New Feature Configuration

  1. Open New Feature Configuration Wizard from Menu > File > Other.. by selecting YAFMT > New Feature Configuration.
  2. Select parent project and name of the feature configuration file. Click Next to continue.
  3. Choose appropriate feature model and set properties of the feature configuration. Click Finish to complete the wizard.

Note: You can also open the wizard via context menu of a selected feature model file inside the projects view. In that case, the selected feature model is used as default for the new feature configuration.

New feature model wizard, page 1 New feature model wizard, page 2

The Editor Interface

The editor interface consists of 2 parts:

  1. Editing area.
  2. Settings panel.

Feature Configuration Editor 1

Using the Editor

Editing Area

  • Double-click on a feature to add or remove it from the configuration.
  • Double-click on an attribute to edit its value.
  • Features can be also added or removed using toolbar or context menu.
  • Properties of selected objects can be edited in the properties view.
  • The configuration tree grows (or is pruned) as you select more and more features.

Toolbar and Context Menu Actions

Icon Name Keyboard shortcut Description
Zoom In Ctrl++ Zooms in. You can also use mouse wheel together with Ctrl to zoom.
Zoom Out Ctrl+- Zooms out. You can also use mouse wheel together with Ctrl to zoom.
                           | Select All                    | *Ctrl+A*          | Selects all objects.

| Undo | Ctrl+Z | Undoes the last action. | Redo | Shift+Ctrl+Z | Re-does the last undone action. | Select Features | Ctrl+S | Adds feature to the configuration. | Deselect Features | Ctrl+D | Removes feature from the configuration. | Show Feature Model Visualizer | | Opens feature model visualizer view. | Export as Image | | Opens dialog window to export contents of the editing area as an image.

Editor objects

Object Visuals Description
Unselected feature. This feature is not present in the configuration, but can be added.
Selected feature. This feature is part of the configuration.
Selected feature with validation error. The tooltip of the Error icon contains error message. Validation errors are also displayed in the problems view.
Unselectable feature. This feature cannot be added to the configuration due to a constraint (defined by a feature group).

Settings Panel

  • Use the Layout combo box to change layout of the displayed tree.
    • The vertical tree layout is shown on the image above.
    • The images below show the horizontal tree layout.
  • Use the Unselected features visibility combo box to change visibility of features available to add to the configuration.
    • Hide All item hides all options (useful when printing diagram).
    • Show Only Selectable item shows only valid options (according to constraints defined by feature groups).
    • Show All item shows everything.

Feature Configuration Editor 2 Feature Configuration Editor 3 Feature Configuration Editor 4

Views

See feauture model editor page for more information about available views.