Add the abstracted difference visualization and model DSL from BT#12
Merged
NiklasRentzCAU merged 15 commits intomainfrom Jan 13, 2026
Merged
Add the abstracted difference visualization and model DSL from BT#12NiklasRentzCAU merged 15 commits intomainfrom
NiklasRentzCAU merged 15 commits intomainfrom
Conversation
support diffviz This is a new synthesis to oppose two different models to each other and to navigate between both models simultaneously, highlighting any differences between the models. Highlighting is currently a stub, required diffviz dsl as well.
model DSL already.
fixes loading preconfigured/saved visualization files again
fixed a few minor code style / visualization issues
change selection color to orange
Contributor
There was a problem hiding this comment.
Pull request overview
This PR abstracts and generalizes the difference visualization and model DSL functionality from a BT thesis implementation, making it available for any architecture in SPViz. The implementation adds support for comparing two models side-by-side with visual indicators for added, removed, and modified elements.
Changes:
- Added two new CLI flags (
--no-model-dsland--no-diff) to optionally skip generation of model DSL and difference visualization components - Implemented difference visualization synthesis that displays two models side-by-side with color-coded differences (green for added, red for removed, blue for modified)
- Generated DSL projects for both model definition and difference specification, including Xtext grammar, MWE2 workflows, and Eclipse plugin configurations
Reviewed changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated 16 comments.
Show a summary per file
| File | Description |
|---|---|
| SPVizModelExtension.xtend | Added utility methods to retrieve contained and connected artifacts |
| SPVizModelGenerator.xtend | Added generation of model DSL and diff DSL projects with Xtext support, including grammar, manifests, and build configurations |
| GenerateModelMavenBuild.xtend | Updated Tycho version from 2.7.5 to 3.0.5 and added dependencies for Xtext and Xcore SDK |
| MANIFEST.MF | Added dependency on org.eclipse.xtext.xtext.wizard for DSL generation |
| SPVizGenerator.xtend | Added generation of diffviz project and updated dependency management to conditionally include DSL projects |
| GenerateSyntheses.xtend | Implemented diff visualization logic with artifact comparison, style updates for difference indicators, and new synthesis properties |
| GenerateSubSyntheses.xtend | Updated subsyntheses to pass differentModel parameter for comparison and apply difference styling |
| GenerateMavenBuild.xtend | Modified to conditionally include diff and model DSL modules in Maven build |
| GenerateLanguageServer.xtend | Updated to register model DSL and diff DSL languages with the language server |
| GenerateDiffViz.xtend | New file generating the dual difference visualization synthesis and supporting classes |
| GenerateActions.xtend | Updated actions to support diff visualization contexts and fixed typo in comment |
| SPVizCLI.xtend | Added CLI options for skipping model DSL and diff generation |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
...cau.cs.kieler.spviz.spviz/src/de/cau/cs/kieler/spviz/spviz/generator/GenerateSyntheses.xtend
Show resolved
Hide resolved
...cau.cs.kieler.spviz.spviz/src/de/cau/cs/kieler/spviz/spviz/generator/GenerateSyntheses.xtend
Show resolved
Hide resolved
...cau.cs.kieler.spviz.spviz/src/de/cau/cs/kieler/spviz/spviz/generator/GenerateSyntheses.xtend
Show resolved
Hide resolved
...r.spviz.spvizmodel/src/de/cau/cs/kieler/spviz/spvizmodel/generator/SPVizModelGenerator.xtend
Show resolved
Hide resolved
...r.spviz.spvizmodel/src/de/cau/cs/kieler/spviz/spvizmodel/generator/SPVizModelGenerator.xtend
Outdated
Show resolved
Hide resolved
...cau.cs.kieler.spviz.spviz/src/de/cau/cs/kieler/spviz/spviz/generator/GenerateSyntheses.xtend
Show resolved
Hide resolved
...cau.cs.kieler.spviz.spviz/src/de/cau/cs/kieler/spviz/spviz/generator/GenerateSyntheses.xtend
Show resolved
Hide resolved
...r.spviz.spvizmodel/src/de/cau/cs/kieler/spviz/spvizmodel/generator/SPVizModelGenerator.xtend
Show resolved
Hide resolved
...cau.cs.kieler.spviz.spviz/src/de/cau/cs/kieler/spviz/spviz/generator/GenerateSyntheses.xtend
Show resolved
Hide resolved
...cau.cs.kieler.spviz.spviz/src/de/cau/cs/kieler/spviz/spviz/generator/GenerateSyntheses.xtend
Show resolved
Hide resolved
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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 takes the implementation from the recent BT for OSGi visualizations and abstracts it for any architecture in SPViz.