Skip to content

Variability: Provide extension point for adapting the names of referenced configurations #1598

@kbirken

Description

@kbirken

In variability editors, there are several locations where the name of a configuration is used for referencing the configuration. E.g., When a sub-configuration is referenced from a parent configuration:

Image

Or for the description of the intention for changing this sub-configuration reference:

Image

Or for the reference to the base configuration in case of extends:

Image

In all these cases, it should be possible to tailor which string is shown as reference (default: the configuration's name). This should be doable using a new method in extension point tailorIETS3Variability. One use case for this would be to show some information from the configuration content in addition to the name, e.g. some rather global configuration option like the market:

Example: For the tailored logic "take the configuration's name and append the selected market feature"...

  • a configuration named ConfigBasic where the XOR feature US has been selected would be referenced as ConfigBasic_US
  • a configuration named ConfigPremium where the XOR feature US has been selected would be referenced as ConfigPremium_US
  • a configuration named ConfigBasic where the XOR feature JP has been selected would be referenced as ConfigBasic_JP

Two more requirements should be implemented:

  • The duplicate check for configuration names should be configurable via tailorIETS3Variability : either use the names (as-is) or the tailored names.
  • If the naming has been tailored via tailorIETS3Variability , then the tailored name for each configuration should be also shown for the actual configuration, not only for references. Proposal: in grey text font, either in the editor or in the inspector.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions