Browse Source

Add support for the drop operation in the client.

Yentl Van Tendeloo 7 years ago
parent
commit
0b34e7bef4
2 changed files with 18 additions and 1 deletions
  1. 17 0
      wrappers/classes/modelverse.xml
  2. 1 1
      wrappers/modelverse_SCCD.py

+ 17 - 0
wrappers/classes/modelverse.xml

@@ -1793,6 +1793,7 @@
                         <state id="recognized" initial="manual">
                             <state id="manual">
                                 <transition cond="self.expect_action(self.context, 'exit')" target="../../../../leaving_manual"/>
+                                <transition cond="self.expect_action(self.context, 'drop')" target="../../../../leaving_manual_drop"/>
 
                                 <transition cond="self.actions[self.context] and self.actions[self.context][0]['parameters'][0] != self.current_model" target="../../../../leaving_manual"/>
                             </state>
@@ -1803,6 +1804,12 @@
                                         <parameter expr="'exit'"/>
                                     </raise>
                                 </transition>
+
+                                <transition cond="self.expect_action(self.context, 'drop')" target="../../../../operations/store_on_scripted/history">
+                                    <raise event="request">
+                                        <parameter expr="'drop'"/>
+                                    </raise>
+                                </transition>
                             </state>
 
                             <transition cond="self.expect_action(self.context, 'element_list')" target="../../../operations/element_list">
@@ -2055,6 +2062,16 @@
 
                     <transition cond="self.expect_response('Success', pop=True)" target="../wait_for_action/megamodelling"/>
                 </state>
+
+                <state id="leaving_manual_drop">
+                    <onentry>
+                        <raise event="request">
+                            <parameter expr="'drop'"/>
+                        </raise>
+                    </onentry>
+
+                    <transition cond="self.expect_response('Success', pop=True)" target="../wait_for_action/megamodelling"/>
+                </state>
             </state>
 
             <state id="queue">

+ 1 - 1
wrappers/modelverse_SCCD.py

@@ -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:   Wed Nov  8 16:53:59 2017
+Date:   Thu Nov  9 08:24:57 2017
 
 Model author: Yentl Van Tendeloo
 Model name:   MvK Server