From c3285c8027f44d93d3baf3e6774c25756df359c0 Mon Sep 17 00:00:00 2001 From: Alexander Pann Date: Wed, 7 Feb 2024 19:15:49 +0100 Subject: [PATCH 1/5] NodeRangeSelectionHandler: compare the containing links of the start and end node directly --- .../de/itemis/mps/selection/runtime/mouse.mps | 33 ++++++------------- 1 file changed, 10 insertions(+), 23 deletions(-) diff --git a/code/mouseselection/solutions/de.itemis.mps.selection.runtime/models/de/itemis/mps/selection/runtime/mouse.mps b/code/mouseselection/solutions/de.itemis.mps.selection.runtime/models/de/itemis/mps/selection/runtime/mouse.mps index 007031f69..85bbd3840 100644 --- a/code/mouseselection/solutions/de.itemis.mps.selection.runtime/models/de/itemis/mps/selection/runtime/mouse.mps +++ b/code/mouseselection/solutions/de.itemis.mps.selection.runtime/models/de/itemis/mps/selection/runtime/mouse.mps @@ -25,7 +25,6 @@ - @@ -98,6 +97,7 @@ + @@ -209,9 +209,6 @@ - - - @@ -2634,28 +2631,18 @@ - - - - - - - - - - + + + + + - - - - - - - - - + + + + From 3954bdbe347bac0aee6f700d1e78a00133be8e24 Mon Sep 17 00:00:00 2001 From: Alexander Pann Date: Fri, 9 Feb 2024 09:47:38 +0100 Subject: [PATCH 2/5] projectview: register custom project in the AbstractProjectViewPane extension point --- .../mbeddr/mpsutil/projectview/runtime.mps | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/code/projectview/com.mbeddr.mpsutil.projectview.runtime/models/com/mbeddr/mpsutil/projectview/runtime.mps b/code/projectview/com.mbeddr.mpsutil.projectview.runtime/models/com/mbeddr/mpsutil/projectview/runtime.mps index c1fd462b7..a5db7b019 100755 --- a/code/projectview/com.mbeddr.mpsutil.projectview.runtime/models/com/mbeddr/mpsutil/projectview/runtime.mps +++ b/code/projectview/com.mbeddr.mpsutil.projectview.runtime/models/com/mbeddr/mpsutil/projectview/runtime.mps @@ -28,6 +28,8 @@ + + @@ -7002,6 +7004,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -7047,6 +7075,7 @@ + @@ -7127,6 +7156,29 @@ + + + + + + + + + + + + + + + + + + + + + + + From 1c15f622a566d08210b62dfdc340c24d686c76c3 Mon Sep 17 00:00:00 2001 From: Alexander Pann Date: Fri, 9 Feb 2024 09:48:00 +0100 Subject: [PATCH 3/5] projectview: don't throw an exception when the tree is not set --- .../mpsutil/projectview/runtime/tree.mps | 23 ------------------- 1 file changed, 23 deletions(-) diff --git a/code/projectview/com.mbeddr.mpsutil.projectview.runtime/models/com/mbeddr/mpsutil/projectview/runtime/tree.mps b/code/projectview/com.mbeddr.mpsutil.projectview.runtime/models/com/mbeddr/mpsutil/projectview/runtime/tree.mps index 5c35af237..c6644c693 100755 --- a/code/projectview/com.mbeddr.mpsutil.projectview.runtime/models/com/mbeddr/mpsutil/projectview/runtime/tree.mps +++ b/code/projectview/com.mbeddr.mpsutil.projectview.runtime/models/com/mbeddr/mpsutil/projectview/runtime/tree.mps @@ -169,9 +169,6 @@ - - - @@ -8824,26 +8821,6 @@ - - - - - - - - - - - - - - - - - - - - From c819993861bfa068c766945360dcefb8338fc1ce Mon Sep 17 00:00:00 2001 From: Alexander Pann Date: Fri, 9 Feb 2024 09:51:16 +0100 Subject: [PATCH 4/5] projectview: fix another NullPointerException --- .../mpsutil/projectview/runtime/tree.mps | 26 +++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/code/projectview/com.mbeddr.mpsutil.projectview.runtime/models/com/mbeddr/mpsutil/projectview/runtime/tree.mps b/code/projectview/com.mbeddr.mpsutil.projectview.runtime/models/com/mbeddr/mpsutil/projectview/runtime/tree.mps index c6644c693..0ef819ba7 100755 --- a/code/projectview/com.mbeddr.mpsutil.projectview.runtime/models/com/mbeddr/mpsutil/projectview/runtime/tree.mps +++ b/code/projectview/com.mbeddr.mpsutil.projectview.runtime/models/com/mbeddr/mpsutil/projectview/runtime/tree.mps @@ -8863,11 +8863,33 @@ + + + + + + + + + + + + + + + + + + + + + + - - + + From 97c9d231b54061e47447d06d9c14365022b87b31 Mon Sep 17 00:00:00 2001 From: Daniel Ratiu Date: Thu, 8 Feb 2024 09:49:58 +0100 Subject: [PATCH 5/5] diagram.runtime: LayoutProcessor - avoid unnecessary layouting of sub-diagrams --- CHANGELOG.md | 1 + .../mps/editor/diagram/runtime/jgraph.mps | 120 +++++++++++++++--- 2 files changed, 102 insertions(+), 19 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 73790a314..9a650aeff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ The project does _not_ follow Semantic Versioning and the changes are documented ## Feburary 2024 +- de.itemis.mps.editor.diagram: Avoid unnecessary layouting of sub-diagrams - de.itemis.mps.editor.diagram: A layouting bug related to ports was fixed. ## January 2024 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 b35f3b47e..e55fbc34d 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 @@ -10023,6 +10023,17 @@ + + + + + + + + + + + @@ -93444,7 +93455,12 @@ - + + + + + + @@ -93459,6 +93475,19 @@ + + + + + + + + + + + + + @@ -93466,6 +93495,10 @@ + + + + @@ -94083,30 +94116,79 @@ - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - + + +