|
@@ -1,7 +1,7 @@
|
|
|
"""
|
|
|
Generated by Statechart compiler by Glenn De Jonghe, Joeri Exelmans, Simon Van Mierlo, and Yentl Van Tendeloo (for the inspiration)
|
|
|
|
|
|
-Date: Tue May 29 09:07:36 2018
|
|
|
+Date: Tue May 29 09:38:53 2018
|
|
|
|
|
|
Model author: Yentl Van Tendeloo
|
|
|
Model name: Modelverse Visual Editor - Tkinter Version
|
|
@@ -14552,6 +14552,7 @@ class CanvasElement(RuntimeClassBase, SCCDWidget):
|
|
|
|
|
|
def _main_0_exec(self, parameters):
|
|
|
element = parameters[0]
|
|
|
+ print("MM: " + str(current_metamodel))
|
|
|
elem_x = self.coordinates[0] + element["x"]
|
|
|
elem_y = self.coordinates[1] + element["y"]
|
|
|
if element["type"] == "Rectangle":
|
|
@@ -14587,7 +14588,7 @@ class CanvasElement(RuntimeClassBase, SCCDWidget):
|
|
|
|
|
|
def _main_3_guard(self, parameters):
|
|
|
ID = parameters[0]
|
|
|
- return id(self) == ID and control_pressed
|
|
|
+ return id(self) == ID and control_pressed and current_metamodel == 'formalisms/SimpleClassDiagrams'
|
|
|
|
|
|
def _main_4_exec(self, parameters):
|
|
|
ID = parameters[0]
|