Variability: Provide extension point for enriching configuration names#1659
Merged
kbirken merged 4 commits intomaintenance/mps20241from Feb 27, 2026
Merged
Conversation
…s of AbstractFeatureConfigs (#1598).
e49394a to
29f3940
Compare
…_config_names_via_extension_1598 # Conflicts: # code/languages/org.iets3.opensource/solutions/org.iets3.opensource.build/models/org/iets3/opensource/build/build.mps
Member
|
@kbirken der Kommentar, sagt wenn ‘false’ dann enriched, der Methodenname sagt aber das Gegenteil (oder?)
|
Member
|
@kbirken Priorities are ordered 'asc' But there are others where it is ordered 'desc'.... to keep things simple, there should only be one way. |
Member
dbinkele
approved these changes
Feb 27, 2026
Details: - Sort extensions descending and use "first". - Re-activate code in test which had been commented out. - Fix wrong javadoc comment in API.
936f1e7 to
0b7212f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


This PR introduces an extension point for application-specific enriching of configuration names. The default extension for this ensures that nothing is changed at all. The interface
IEnrichedConfigNameLogicspecifies the API for the extension.A dozen of test cases has been implemented. They use an extension
SomeEnrichedNameLogicwhich can be activated by the tests by lifting its priority.In order to test the functionality manually in the IDE, just temporarily increase
SomeEnrichedNameLogic .myPriorityto a value above zero. Then the test extension will be activated in the IDE. Then the enriched names will be shown for the configuration examples in the tests, e.g.:Or for references (see
rack1):The CHANGELOG has been updated.
This solves #1598.