Annotate MPS Diff Viewer with additional information
I am looking to add external information to the MPS Diff viewer. Ideally this would also allow for interactivity and not be read-only.
How could I go about implementing this? I'm fine with using either swing components to extend the diff pane itself or extending the model viewer in some way, but I can not modify the backing AST.
Please sign in to leave a comment.
If I understand correctly, the capability of multiple editors (https://confluence.jetbrains.com/display/MPSD20172/Editor+cookbook#Editorcookbook-Howtodefinemultipleeditorsforthesameconcept) should solve your issue.
In the Diff viewer you can change the visualization of the code the same way you would do it in the editor - by specifying the hints:
I guess I should have clarified - the goal is to not require any specific language to be imported to provide this information. The information I would like to display is meta-information about the code itself (any MPS code, not just for our DSL). Specifically, I'm working on a code commenting system that allows for viewing/adding contextual comments to existing code. These comments are stored outside of the AST.
This feature will be provided by a plugin. At the moment, I am working on prototyping a toolbar to show this information and that seems to work well. It will be much more useful if we can include that information in the VCS diff window itself.
there is a mbeddr code review dsl
Yes, I have reviewed (no pun intended) that DSL as well. It doesn't really fit the use case I am aiming at here - to enhance the experience of viewing comments on any MPS source without requiring additional languages to be imported.