|Performing unrelated tasks as part of separate operations - resource creation, set operation [message #1818289]
||Wed, 11 December 2019 15:19
| Neeraj Bhusare
Registered: July 2009
I am working on a graphical editor (Xtext-Sirius integration) that allows visualizing and editing models (Entities) that are serialized in "separate" resources. In the Node creation tool, set name operation, value expression, I specify a service that - 1) Initializes the passed Entity instance, and serializes it in newly created resource, 2) Returns the name of the Entity EObject. |
Performing #1 as part of the "set" operation looks a bit odd to me. Is there a way in which I could separate these two operations - The first operation returns the name, and the second operation creates a resource and serializes the initialized Entity instance.
Like Entities, I have attributes that have name and datatype. In order to separate the two operations (setting of the name and datatype), I have nested the operation "set name" inside "set datatype". This is much easier to understand and maintain, as compared to the earlier solution where I am performing multiple "unrelated" operations as part of one operation.
I briefly looked at the following projects, but I didn't find any hints - farmingmodel, Dart-Designer, Epi-designer. I also went through the forum but didn't find much help.
It will be great if I could get some pointers/hints.
Tx in advance.
Twitter : @NeerajBhusare
Blog : https://nbhusare.github.io/
Best regards, Neeraj
Powered by FUDForum
. Page generated in 0.01573 seconds