From 0e431b4fe62fbe48bd02f7b3b59b40c6998cb056 Mon Sep 17 00:00:00 2001 From: Sascha Lisson Date: Thu, 7 Jan 2016 10:21:11 +0100 Subject: [PATCH 01/15] Diagram: Selection handling after dropping a new box from the palette --- .../de/itemis/mps/editor/diagram/runtime.mps | 140 ++++++++++++++ .../mps/editor/diagram/runtime/model.mps | 172 ++++++++++++++++++ 2 files changed, 312 insertions(+) diff --git a/code/plugins/sl-all/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime.mps b/code/plugins/sl-all/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime.mps index e82fe6aafea..9647b95839f 100644 --- a/code/plugins/sl-all/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime.mps +++ b/code/plugins/sl-all/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime.mps @@ -36,6 +36,7 @@ + @@ -105,6 +106,9 @@ + + + @@ -242,6 +246,7 @@ + @@ -253,6 +258,9 @@ + + + @@ -3219,5 +3227,137 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/code/plugins/sl-all/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime/model.mps b/code/plugins/sl-all/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime/model.mps index 2c13a9cbf7e..8445087ff44 100644 --- a/code/plugins/sl-all/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime/model.mps +++ b/code/plugins/sl-all/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime/model.mps @@ -46,6 +46,7 @@ + @@ -17472,6 +17473,14 @@ + + + + + + + + @@ -17910,6 +17919,159 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -18996,6 +19158,16 @@ + + + + + + + + + + From d4fc15feabfd0cb0fec31292acb2982f8d039ec7 Mon Sep 17 00:00:00 2001 From: Sascha Lisson Date: Thu, 7 Jan 2016 11:39:44 +0100 Subject: [PATCH 02/15] Diagram: Fix caret blinking --- .../de/itemis/mps/editor/diagram/runtime.mps | 312 +++++++++++------- .../mps/editor/diagram/runtime/jgraph.mps | 150 +++++++++ 2 files changed, 336 insertions(+), 126 deletions(-) diff --git a/code/plugins/sl-all/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime.mps b/code/plugins/sl-all/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime.mps index 9647b95839f..3cfa128b964 100644 --- a/code/plugins/sl-all/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime.mps +++ b/code/plugins/sl-all/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime.mps @@ -45,6 +45,10 @@ + + + + @@ -53,6 +57,7 @@ + @@ -258,6 +263,7 @@ + @@ -271,19 +277,9 @@ - - - - - - - - - - @@ -661,7 +657,7 @@ - + @@ -995,6 +991,23 @@ + + + + + + + + + + + + + + + + + @@ -1036,15 +1049,20 @@ - - + + - - - + + + - - + + + + + + + @@ -1060,144 +1078,186 @@ - - - - - - - - - - - + + + + + + - - + + + + + + + + - - - - - - + + + + + + + - - - - - - - - - - - - - - - - - + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + - - - - - - + + + + + + + + - - + + - - - - - - - + + + + + + + + - - - - - + + + + + + + - - + + + + + + + + + + + + + - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + + + + - - - - - + + + + + + + - - - - - - - - + + + + + + + + + + + + + + + + + + diff --git a/code/plugins/sl-all/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime/jgraph.mps b/code/plugins/sl-all/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime/jgraph.mps index 971a660269c..177dd8c9e1b 100644 --- a/code/plugins/sl-all/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime/jgraph.mps +++ b/code/plugins/sl-all/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime/jgraph.mps @@ -3310,6 +3310,18 @@ + + + + + + + + + + + + @@ -3323,6 +3335,19 @@ + + + + + + + + + + + + + @@ -50305,6 +50330,131 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From 5390e6f67fa635252b8a84ab2a1a4a5d8a8ba158 Mon Sep 17 00:00:00 2001 From: Sascha Lisson Date: Thu, 7 Jan 2016 11:45:38 +0100 Subject: [PATCH 03/15] Diagram: Changed the context button size from 15 to 16 Originally, it was 10 and some icons look different with an odd number of pixels. --- .../models/de/itemis/mps/editor/diagram/runtime/jgraph.mps | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/plugins/sl-all/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime/jgraph.mps b/code/plugins/sl-all/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime/jgraph.mps index 177dd8c9e1b..4cc3abf84cf 100644 --- a/code/plugins/sl-all/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime/jgraph.mps +++ b/code/plugins/sl-all/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime/jgraph.mps @@ -68376,7 +68376,7 @@ - + From 2e430a2cdeaeb34c28a87c661cfbd987af93ee27 Mon Sep 17 00:00:00 2001 From: Sascha Lisson Date: Thu, 7 Jan 2016 12:19:02 +0100 Subject: [PATCH 04/15] Diagram: Caret was drawn dashed sometimes --- .../languageModels/editor.mps | 2 +- .../mps/editor/diagram/runtime/jgraph.mps | 104 ++++++++++++------ 2 files changed, 74 insertions(+), 32 deletions(-) diff --git a/code/plugins/sl-all/diagram/languages/de.itemis.mps.editor.diagram.styles/languageModels/editor.mps b/code/plugins/sl-all/diagram/languages/de.itemis.mps.editor.diagram.styles/languageModels/editor.mps index b6eee90700e..1c5b4200611 100644 --- a/code/plugins/sl-all/diagram/languages/de.itemis.mps.editor.diagram.styles/languageModels/editor.mps +++ b/code/plugins/sl-all/diagram/languages/de.itemis.mps.editor.diagram.styles/languageModels/editor.mps @@ -446,7 +446,7 @@ - + diff --git a/code/plugins/sl-all/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime/jgraph.mps b/code/plugins/sl-all/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime/jgraph.mps index 4cc3abf84cf..56caf4b10a0 100644 --- a/code/plugins/sl-all/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime/jgraph.mps +++ b/code/plugins/sl-all/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime/jgraph.mps @@ -26975,33 +26975,56 @@ - - - - - - - - - - + + + + + + + + + + - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - + + + + + @@ -50317,15 +50340,34 @@ - - - - + + + + + + - - - - + + + + + + + + + + + + + + + + + + + + + From 1f6231a808841193a8f97899594b9735b3e2e6c7 Mon Sep 17 00:00:00 2001 From: Sascha Lisson Date: Thu, 7 Jan 2016 13:19:30 +0100 Subject: [PATCH 05/15] Diagram: Fix: Drag preview image was still visible after the drop --- .../mps/editor/diagram/runtime/jgraph.mps | 124 ++++++++++++++++++ 1 file changed, 124 insertions(+) diff --git a/code/plugins/sl-all/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime/jgraph.mps b/code/plugins/sl-all/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime/jgraph.mps index 56caf4b10a0..3c555482ce3 100644 --- a/code/plugins/sl-all/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime/jgraph.mps +++ b/code/plugins/sl-all/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime/jgraph.mps @@ -25604,6 +25604,130 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From 641bb0caac8b2b2b6923f6f54a691f851276ed6c Mon Sep 17 00:00:00 2001 From: Sascha Lisson Date: Thu, 7 Jan 2016 14:35:09 +0100 Subject: [PATCH 06/15] Diagram: Default translation to prevent overlapping with the buttons Fixes #1257 (By default, the layouter moves stuff into the top left corner, where it is overshadowed by the diagram buttons) --- .../mps/editor/diagram/runtime/jgraph.mps | 249 ++++++++++++------ 1 file changed, 169 insertions(+), 80 deletions(-) diff --git a/code/plugins/sl-all/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime/jgraph.mps b/code/plugins/sl-all/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime/jgraph.mps index 3c555482ce3..34a56242a6c 100644 --- a/code/plugins/sl-all/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime/jgraph.mps +++ b/code/plugins/sl-all/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime/jgraph.mps @@ -18918,6 +18918,11 @@ + + + + + @@ -18936,6 +18941,113 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -57808,6 +57920,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -57830,16 +57972,8 @@ - - - - - - - - - - + + @@ -57852,6 +57986,26 @@ + + + + + + + + + + + + + + + + + + + + @@ -79631,26 +79785,12 @@ - - - - - - - - - - - - + + + - - - - - - - + + @@ -88357,57 +88497,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - From 723147a42fbb68b11b9d9a0c335f9e344ae30fd9 Mon Sep 17 00:00:00 2001 From: Sascha Lisson Date: Thu, 7 Jan 2016 15:12:42 +0100 Subject: [PATCH 07/15] Diagram: Size of a shape cell can be specified in the inspector Fixes #1254 --- .../generator/template/main@generator.mps | 88 ++++++++++++ .../languageModels/editor.mps | 38 ++++++ .../languageModels/structure.mps | 10 ++ .../mps/editor/diagram/runtime/shape.mps | 129 ++++++++++++++++-- 4 files changed, 253 insertions(+), 12 deletions(-) diff --git a/code/plugins/sl-all/diagram/languages/de.itemis.mps.editor.diagram/generator/template/main@generator.mps b/code/plugins/sl-all/diagram/languages/de.itemis.mps.editor.diagram/generator/template/main@generator.mps index 19e4ee431b8..a54ec2c8a11 100644 --- a/code/plugins/sl-all/diagram/languages/de.itemis.mps.editor.diagram/generator/template/main@generator.mps +++ b/code/plugins/sl-all/diagram/languages/de.itemis.mps.editor.diagram/generator/template/main@generator.mps @@ -10560,6 +10560,94 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/code/plugins/sl-all/diagram/languages/de.itemis.mps.editor.diagram/languageModels/editor.mps b/code/plugins/sl-all/diagram/languages/de.itemis.mps.editor.diagram/languageModels/editor.mps index 37e87168d83..fd5827be813 100644 --- a/code/plugins/sl-all/diagram/languages/de.itemis.mps.editor.diagram/languageModels/editor.mps +++ b/code/plugins/sl-all/diagram/languages/de.itemis.mps.editor.diagram/languageModels/editor.mps @@ -3658,6 +3658,44 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/code/plugins/sl-all/diagram/languages/de.itemis.mps.editor.diagram/languageModels/structure.mps b/code/plugins/sl-all/diagram/languages/de.itemis.mps.editor.diagram/languageModels/structure.mps index 0d1d31761a8..5224cb02aaa 100644 --- a/code/plugins/sl-all/diagram/languages/de.itemis.mps.editor.diagram/languageModels/structure.mps +++ b/code/plugins/sl-all/diagram/languages/de.itemis.mps.editor.diagram/languageModels/structure.mps @@ -1311,6 +1311,16 @@ + + + + + + + + + + diff --git a/code/plugins/sl-all/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime/shape.mps b/code/plugins/sl-all/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime/shape.mps index a476efd9795..deabea2ea75 100644 --- a/code/plugins/sl-all/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime/shape.mps +++ b/code/plugins/sl-all/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime/shape.mps @@ -2724,6 +2724,22 @@ + + + + + + + + + + + + + + + + @@ -2776,7 +2792,76 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -2787,8 +2872,8 @@ - - + + @@ -2797,8 +2882,8 @@ - - + + @@ -3010,11 +3095,21 @@ - - + + + + + + + + + + + + - - + + @@ -3042,11 +3137,21 @@ - - + + + + + + + + + + + + - - + + From 9c1b93ad5ba57f4ff2b69582d8b66b31895f316e Mon Sep 17 00:00:00 2001 From: Sascha Lisson Date: Fri, 8 Jan 2016 10:10:56 +0100 Subject: [PATCH 08/15] SelectionIntentions: Intentions where always shown, also if not applicable --- .../models/de/itemis/mps/selection/runtime/intentions.mps | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/plugins/sl-all/solutions/de.itemis.mps.selection.runtime/models/de/itemis/mps/selection/runtime/intentions.mps b/code/plugins/sl-all/solutions/de.itemis.mps.selection.runtime/models/de/itemis/mps/selection/runtime/intentions.mps index 7599677caa8..6c1b15cafaa 100644 --- a/code/plugins/sl-all/solutions/de.itemis.mps.selection.runtime/models/de/itemis/mps/selection/runtime/intentions.mps +++ b/code/plugins/sl-all/solutions/de.itemis.mps.selection.runtime/models/de/itemis/mps/selection/runtime/intentions.mps @@ -1316,7 +1316,7 @@ - + From ba487e305417aa69627ed46e245d4ea4bcbd01db Mon Sep 17 00:00:00 2001 From: Sascha Lisson Date: Fri, 8 Jan 2016 14:16:19 +0100 Subject: [PATCH 09/15] Diagram: Second attempt to fix #1251 (Port Tooltips seem to have no effect) --- code/plugins/sl-all/.mps/modules.xml | 1 + .../mps/editor/diagram/runtime/jgraph.mps | 80 +++++++++++++------ 2 files changed, 56 insertions(+), 25 deletions(-) diff --git a/code/plugins/sl-all/.mps/modules.xml b/code/plugins/sl-all/.mps/modules.xml index 4e6ffd9a8f4..1ac1c2a36ff 100644 --- a/code/plugins/sl-all/.mps/modules.xml +++ b/code/plugins/sl-all/.mps/modules.xml @@ -18,6 +18,7 @@ + diff --git a/code/plugins/sl-all/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime/jgraph.mps b/code/plugins/sl-all/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime/jgraph.mps index 34a56242a6c..362aac393ca 100644 --- a/code/plugins/sl-all/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime/jgraph.mps +++ b/code/plugins/sl-all/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime/jgraph.mps @@ -22478,6 +22478,14 @@ + + + + + + + + @@ -23070,37 +23078,51 @@ - - - - - - + + + + + + + + + + - - + + + + + + + - - - - - - - - - - + + + + + + + + + + + + + + - - - - - - - + + + + + + + + @@ -25856,6 +25878,14 @@ + + + + + + + + From 15b9c40a1ac8cac13113d026f205d48daa899ebd Mon Sep 17 00:00:00 2001 From: Sascha Lisson Date: Fri, 8 Jan 2016 14:57:58 +0100 Subject: [PATCH 10/15] GrammarCells: Wrap around enum property create an enum with default value If the internal value was different from the presentation, the enum was alsways set to the default value. --- .../grammarcells/sandboxlang/editor.mps | 8 ++ .../grammarcells/sandboxlang/structure.mps | 42 ++++++ .../generator/template/main@generator.mps | 136 +++++++++--------- .../mbeddr/mpsutil/grammarcells/runtime.mps | 96 +++++++++++++ 4 files changed, 217 insertions(+), 65 deletions(-) diff --git a/code/languages/com.mbeddr.mpsutil/languages/com.mbeddr.mpsutil.grammarcells.sandboxlang/models/com/mbeddr/mpsutil/grammarcells/sandboxlang/editor.mps b/code/languages/com.mbeddr.mpsutil/languages/com.mbeddr.mpsutil.grammarcells.sandboxlang/models/com/mbeddr/mpsutil/grammarcells/sandboxlang/editor.mps index c32abd65bfa..4b5c5ef5aea 100644 --- a/code/languages/com.mbeddr.mpsutil/languages/com.mbeddr.mpsutil.grammarcells.sandboxlang/models/com/mbeddr/mpsutil/grammarcells/sandboxlang/editor.mps +++ b/code/languages/com.mbeddr.mpsutil/languages/com.mbeddr.mpsutil.grammarcells.sandboxlang/models/com/mbeddr/mpsutil/grammarcells/sandboxlang/editor.mps @@ -968,5 +968,13 @@ + + + + + + + + diff --git a/code/languages/com.mbeddr.mpsutil/languages/com.mbeddr.mpsutil.grammarcells.sandboxlang/models/com/mbeddr/mpsutil/grammarcells/sandboxlang/structure.mps b/code/languages/com.mbeddr.mpsutil/languages/com.mbeddr.mpsutil.grammarcells.sandboxlang/models/com/mbeddr/mpsutil/grammarcells/sandboxlang/structure.mps index ad3a0a434fd..48e9b19f140 100644 --- a/code/languages/com.mbeddr.mpsutil/languages/com.mbeddr.mpsutil.grammarcells.sandboxlang/models/com/mbeddr/mpsutil/grammarcells/sandboxlang/structure.mps +++ b/code/languages/com.mbeddr.mpsutil/languages/com.mbeddr.mpsutil.grammarcells.sandboxlang/models/com/mbeddr/mpsutil/grammarcells/sandboxlang/structure.mps @@ -10,9 +10,18 @@ + + + + + + + + + @@ -465,5 +474,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/code/languages/com.mbeddr.mpsutil/languages/com.mbeddr.mpsutil.grammarcells/generator/template/main@generator.mps b/code/languages/com.mbeddr.mpsutil/languages/com.mbeddr.mpsutil.grammarcells/generator/template/main@generator.mps index 5b37cdf98db..91b44435aa9 100644 --- a/code/languages/com.mbeddr.mpsutil/languages/com.mbeddr.mpsutil.grammarcells/generator/template/main@generator.mps +++ b/code/languages/com.mbeddr.mpsutil/languages/com.mbeddr.mpsutil.grammarcells/generator/template/main@generator.mps @@ -6327,6 +6327,66 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -6399,73 +6459,12 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + @@ -6571,8 +6570,15 @@ - - + + + + + + + + + diff --git a/code/languages/com.mbeddr.mpsutil/solutions/com.mbeddr.mpsutil.grammarcells.runtime/models/com/mbeddr/mpsutil/grammarcells/runtime.mps b/code/languages/com.mbeddr.mpsutil/solutions/com.mbeddr.mpsutil.grammarcells.runtime/models/com/mbeddr/mpsutil/grammarcells/runtime.mps index 7c9e4711618..03991e1ca37 100644 --- a/code/languages/com.mbeddr.mpsutil/solutions/com.mbeddr.mpsutil.grammarcells.runtime/models/com/mbeddr/mpsutil/grammarcells/runtime.mps +++ b/code/languages/com.mbeddr.mpsutil/solutions/com.mbeddr.mpsutil.grammarcells.runtime/models/com/mbeddr/mpsutil/grammarcells/runtime.mps @@ -2502,6 +2502,102 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From 704a995e11b0e598955266c96587737986d9c140 Mon Sep 17 00:00:00 2001 From: Sascha Lisson Date: Mon, 11 Jan 2016 09:35:17 +0100 Subject: [PATCH 11/15] Diagram: #1268 Pressing Backspace to Delete Boxes or Edges has no effect --- .../mps/editor/diagram/runtime/jgraph.mps | 122 +++++++++++++++++- 1 file changed, 119 insertions(+), 3 deletions(-) diff --git a/code/plugins/sl-all/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime/jgraph.mps b/code/plugins/sl-all/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime/jgraph.mps index 362aac393ca..cc69379273f 100644 --- a/code/plugins/sl-all/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime/jgraph.mps +++ b/code/plugins/sl-all/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime/jgraph.mps @@ -424,6 +424,9 @@ + + + @@ -45385,6 +45388,96 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -45857,8 +45950,17 @@ - - + + + + + + + + + + + @@ -45876,7 +45978,21 @@ - + + + + + + + + + + + + + + + From 11d98538e8772870e77f522687abae29ad88c0ba Mon Sep 17 00:00:00 2001 From: Sascha Lisson Date: Mon, 11 Jan 2016 10:23:17 +0100 Subject: [PATCH 12/15] Diagram: #1266 Resize (button, or automatic) should take into account ports --- .../mps/editor/diagram/runtime/jgraph.mps | 289 ++++++++++++++++-- 1 file changed, 266 insertions(+), 23 deletions(-) diff --git a/code/plugins/sl-all/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime/jgraph.mps b/code/plugins/sl-all/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime/jgraph.mps index cc69379273f..eaed47e33b0 100644 --- a/code/plugins/sl-all/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime/jgraph.mps +++ b/code/plugins/sl-all/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime/jgraph.mps @@ -587,6 +587,7 @@ + @@ -641,6 +642,9 @@ + + + @@ -43005,6 +43009,235 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -89179,38 +89412,48 @@ - - - - - - - - - - + + + + + + + + + + - - + + + + + + + - - - - - - - - - + + + + - - + + + + + + + + + + + + From 4f34f63b96e033c19beea3d0cd7c30761e7532d5 Mon Sep 17 00:00:00 2001 From: Sascha Lisson Date: Mon, 11 Jan 2016 10:56:26 +0100 Subject: [PATCH 13/15] Diagram: #1256 If the edge label has a condition, the thin grey line points into nowhere --- .../generator/template/main@generator.mps | 568 ++++++++++-------- .../de/itemis/mps/editor/diagram/runtime.mps | 55 ++ .../mps/editor/diagram/runtime/jgraph.mps | 2 +- 3 files changed, 367 insertions(+), 258 deletions(-) diff --git a/code/plugins/sl-all/diagram/languages/de.itemis.mps.editor.diagram/generator/template/main@generator.mps b/code/plugins/sl-all/diagram/languages/de.itemis.mps.editor.diagram/generator/template/main@generator.mps index a54ec2c8a11..95a96478b0e 100644 --- a/code/plugins/sl-all/diagram/languages/de.itemis.mps.editor.diagram/generator/template/main@generator.mps +++ b/code/plugins/sl-all/diagram/languages/de.itemis.mps.editor.diagram/generator/template/main@generator.mps @@ -5663,33 +5663,37 @@ - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - @@ -5697,25 +5701,25 @@ - - - - - - - - - - + + + + + + + + + + + - - - - + + + @@ -5727,69 +5731,73 @@ - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - - - - - - - - - - - - - + + + + + + + + + + + + + + - - - + - - - - + + + @@ -5801,69 +5809,73 @@ - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - - - - - - - - - - - - - + + + + + + + + + + + + + + - - - + - - - - + + + @@ -8970,30 +8982,34 @@ - - - - - - - - - - - + + + + + + + + + + + + + + + - - - - - - - - + + + + + + + + @@ -9027,35 +9043,39 @@ - - - - - - - - - - - + + + + + + + + + + + + + + + - - - - - - - - - + + + + + + + + + + + + - - - @@ -9094,35 +9114,39 @@ - - - - - - - - - - - + + + + + + + + + + + + + + + - - - - - - - - - + + + + + + + + + + + + - - - @@ -9154,100 +9178,130 @@ - - - - - - - - - + + + + + + + + + + + + + - - - - - - - - + + + + + + + + + + + + + + - + - - - - - - - - - + + + + + + + + + + + + + - - - - - - - - - + + + + + + + + + + + + + + + - + - + - - - - - - - - - + + + + + + + + + + + + + - - - - - - - - - + + + + + + + + + + + + + + + - + - + diff --git a/code/plugins/sl-all/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime.mps b/code/plugins/sl-all/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime.mps index 3cfa128b964..dcfcdab8b0b 100644 --- a/code/plugins/sl-all/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime.mps +++ b/code/plugins/sl-all/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime.mps @@ -256,6 +256,11 @@ + + + + + @@ -1498,6 +1503,56 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/code/plugins/sl-all/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime/jgraph.mps b/code/plugins/sl-all/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime/jgraph.mps index eaed47e33b0..8d19e0a0808 100644 --- a/code/plugins/sl-all/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime/jgraph.mps +++ b/code/plugins/sl-all/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime/jgraph.mps @@ -42399,7 +42399,7 @@ - + From eaf1a79d3152f77e9d5dab06ad5ce39702d5f63e Mon Sep 17 00:00:00 2001 From: Sascha Lisson Date: Mon, 11 Jan 2016 12:22:37 +0100 Subject: [PATCH 14/15] Diagram: Tooltip is shown if you click on an palette entry ("Use Drag and Drop") --- .../mps/editor/diagram/runtime/jgraph.mps | 86 +++++++++++++++++++ 1 file changed, 86 insertions(+) diff --git a/code/plugins/sl-all/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime/jgraph.mps b/code/plugins/sl-all/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime/jgraph.mps index 8d19e0a0808..2850ffefdfd 100644 --- a/code/plugins/sl-all/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime/jgraph.mps +++ b/code/plugins/sl-all/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime/jgraph.mps @@ -98,6 +98,7 @@ + @@ -16407,6 +16408,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From a4ffcdb84dc4b0ab647a7449ed94b6a26447ee99 Mon Sep 17 00:00:00 2001 From: Niko Stotz Date: Mon, 11 Jan 2016 13:15:56 +0100 Subject: [PATCH 15/15] added qsort() and qsort_r() to stdlib (fixes #1269) --- .../models/com/mbeddr/core/stdlib.mps | 123 ++++++++++++++++++ 1 file changed, 123 insertions(+) diff --git a/code/languages/com.mbeddr.core/solutions/com.mbeddr.core.stdlib/models/com/mbeddr/core/stdlib.mps b/code/languages/com.mbeddr.core/solutions/com.mbeddr.core.stdlib/models/com/mbeddr/core/stdlib.mps index 519e0532154..07e00be11f3 100644 --- a/code/languages/com.mbeddr.core/solutions/com.mbeddr.core.stdlib/models/com/mbeddr/core/stdlib.mps +++ b/code/languages/com.mbeddr.core/solutions/com.mbeddr.core.stdlib/models/com/mbeddr/core/stdlib.mps @@ -4017,6 +4017,129 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +