From 78a305a6566de1c97dc2692d6b2c41a1974321b0 Mon Sep 17 00:00:00 2001 From: Alexander Pann Date: Wed, 5 Jun 2024 12:24:24 +0200 Subject: [PATCH] editor.diagram: make diagrams work in headless mode (for documentation generation) --- CHANGELOG.md | 36 ++------- .../mps/editor/diagram/runtime/jgraph.mps | 52 ++++++++++++ .../de.itemis.mps.extensions.changelog.mps | 79 +++++++++++++++++++ 3 files changed, 137 insertions(+), 30 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b27816ed8..d07e14a0d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to this project are documented in this file. The format is *loosely* based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) .The project does *not* follow Semantic Versioning and the changes are documented in reverse chronological order, grouped by calendar month. +## June 2024 + +### Fixed + +- *de.itemis.mps.editor.diagram.runtime*: Diagrams can now be used in an headless environment (e.g. for rendering documentation). + ## May 2024 ### Fixed @@ -21,15 +27,6 @@ The format is *loosely* based on [Keep a Changelog](https://keepachangelog.com/e ### Added - A new language *de.itemis.mps.changelog* was added to describe *CHANGELOG.md* files. This file is generated with this language. -- com.mbeddr.mpsutil.projectview: Class reloading of project views now works. -- com.mbeddr.mpsutil.editor.querylist: Query lists now support model checking for non-dynamically generated nodes and `collapse by default` is generated correctly. -- com.mbeddr.mpsutil.editor.querylist: The element's concept is not automatically forced anymore but is now rather a suggestion. -- de.slisson.mps.reflection: To fix the compilatation issues, the language is now generated earlier in the generation plan. -- de.slisson.mps.richtext: The duplicate action that overwrites the MPS action was added back and now duplicating lines should work again. - -### Added - -- com.mbeddr.mpsutil.editor.querylist: the `insert new` and `delete element` blocks now have an `editorContext` parameter. ## March 2024 @@ -41,30 +38,9 @@ The format is *loosely* based on [Keep a Changelog](https://keepachangelog.com/e ### Fixed - *com.mbeddr.mpsutil.editor.querylist*: Returning null in the query shows the empty cell again (regression). -- de.slisson.mps.richtext: Various small issues were fixed (e.g. NullPointerExceptions, usability problems). -- de.slisson.mps.editor.multiline: Selections are now correctly painted. -- com.mbeddr.mpsutil.editor.querylist: return null in the query shows the empty cell again (regression). - -### Changed - -- de.slisson.mps.richtext: Words are automatically insert as the default concept for IWord. -- de.slisson.mps.richtext: The faulty duplicate line action was removed. - -### Removed - -- com.mbeddr.mpsutil.projectview: The broken parameter `project` from the `Is Default` condition was removed. Use the variable `mpsProject` instead. ## February 2024 -### Added - -- com.mbeddr.mpsutil.blutil: A new ifInstanceOf statement was added that supports else if and else branches. - -### Fixed - -- de.itemis.mps.editor.diagram: Avoid unnecessary layouting of sub-diagrams. -- de.itemis.mps.editor.diagram: A layouting bug related to ports was fixed. - ### Changed - *com.mbeddr.mpsutil.editor.querylist*: Dynamic generated nodes (without a model) can now be used in query lists if read-only is set to true. diff --git a/code/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime/jgraph.mps b/code/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime/jgraph.mps index b4510e445..c6fbb4f29 100644 --- a/code/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime/jgraph.mps +++ b/code/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime/jgraph.mps @@ -33680,6 +33680,58 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/code/solutions/de.itemis.mps.extensions.changelog/models/de.itemis.mps.extensions.changelog.mps b/code/solutions/de.itemis.mps.extensions.changelog/models/de.itemis.mps.extensions.changelog.mps index f6ab1797a..442f2a375 100644 --- a/code/solutions/de.itemis.mps.extensions.changelog/models/de.itemis.mps.extensions.changelog.mps +++ b/code/solutions/de.itemis.mps.extensions.changelog/models/de.itemis.mps.extensions.changelog.mps @@ -33,6 +33,9 @@ + + + @@ -50,6 +53,13 @@ + + + + + + + @@ -58,6 +68,9 @@ + + + @@ -214,6 +227,72 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +