Skip to content

Configuration Editor

simonwenk edited this page Sep 3, 2018 · 21 revisions

HOME < Software Product Line Developer < FeatureIDE Functions in Deep

Outline

  1. General
  2. Export your Configuration
    1. LaTeX Export

General

The configuration editor helps to customize you program. The editor is always in sync with the feature model of the FeatureIDE project. For example, if you rename a feature in the model, also the feature in configuration file is renamed, too. Furthermore, the configuration editor checks whether the configuration is valid to the feature model. The validity of the configuration is shown in the header of the editor. Furthermore, the number of configurations that can have the configuration as partial configuration is shown in the header, too.

You can open a configuration with the configuration editor with a double-click on a configuration file.

The default page shows the configuration as tree similar to the structure defined in the feature model. Selected features are either marked with an check mark or with a box. The box indicated that the selection of the feature is implied by other feature selections; such features cannot be deselected manually until the other feature is deselected. The check mark indicates that the feature is selected manually, thus the features can also be deselected manually. A gray coloring indicates that the feature cannot be selected anymore because of the selection of other features.

If the selection of a feature is implied (i.e., the feature must be selected or deselected) by other features, FeatureIDE automatically sets the selection of these features.

The configuration editor gives some help to guide you to a valid configuration. If the selection or deselection of one feature can make a configuration valid, this feature is highlighted with green if it needs to be selected of blue if it needs to be deselected.

The configuration editor has several pages. You can select other pages at the bottom of the editor. The "Advanced Configuration" page provides some additional functionality to the first page. Here you can additionally mark features to be deselected by right-clicking the feature. You can also see the connection type of the features (e.g., whether it is a mandatory feature).

The "source page" shows the content of the file. You can use this page to copy other configuration. After you go back to one of the configuration pages the editor features are automatically selected.

We recommend not to use the source view to editor the configuration, as you do not have assists such as checks whether the feature exists or the configuration is valid.

Colors are supported.

Export your Configuration

You can export your advanced configuration, if you click on the button "Export As...", which can be found in the menu bar of the Configuration Editor / Advanced Configuration Editor. At the moment you can only export a configuration as *.tex file.

LaTeX Export

If you want to use a configuration in your LaTeX document, you can simply choose to export this as a *.tex file. This generate a new folder with the name you given in which you find three different LaTeX files:

  • head.tex In this file you will find the required styles and packages for your configuration.
  • your_file_name.tex This is the main file. Therefore it is named as your given name (in the dialog where you want to save your file). Here you will find the exported configuration. You can simply integrate this file in your own document with the command \include{your_file_name.tex}. Make sure that you integrate the required styles and packages for this file in your own document too, which you can find in "head.tex", so that the configuration can be displayed correctly.
  • body.tex This file only brings the other files together to easily compile the code.

Small restriction: All features will be exported, no matter how many you have collapsed.

Software Product Line Developer

Clone this wiki locally