Drag-n-drop from Project Explorer - invoking Create Feature [message #1400634] |
Mon, 14 July 2014 13:37 |
|
Hi all,
I am trying to implement a drag-n-drop functionality from the Project Explorer to the Graphiti diagram. I would like when dragging an IFile to create the respective object in the diagram.
As per the link here, I have made the necessary changes in getAddFeature of myfeature provider implementation. So far the drop action is able to add the pictorial element (addFeature), however the addition is not reflected in the business model, since the the respective CreateFeature method is not called.
Can you give me some insights on the correct way of invoking the CreateFeature method while drag-n-drop from the Project Explorer.
Regards,
Nicholas.
|
|
|
|
Re: Drag-n-drop from Project Explorer - invoking Create Feature [message #1401332 is a reply to message #1401293] |
Tue, 15 July 2014 13:01 |
|
Hi Michael,
Thanks for the reply.
In essence the business model I am working with, captures application workflows. Thereby, my diagram visualizes such workflows and the "dragged" IFile (from project explorer)
denotes a workflow dependency.
So upon creation of an empty diagram, the business model behind does not yet include a dependency object. That particular object is created upon a drag'n'drop operation.
What I am trying to achieve is a similar functionality with drag'n'drop of an entry from a palette compartment, however the drag source is the project explorer.
Nicholas
[Updated on: Tue, 15 July 2014 13:01] Report message to a moderator
|
|
|
|
|
Re: Drag-n-drop from Project Explorer - invoking Create Feature [message #1402739 is a reply to message #1402733] |
Thu, 17 July 2014 12:16 |
|
Thanks. So how do I invoke the necessary createFeature method (for the particular BO)
from the add feature? So far my experience of is to use the standard way (as per the tutorial examples) - that is implement the create/add classes for the BO, which are called upon DnD from the pallete.
Can you point me to such an example/code snippet?
Thanks,
Nicholas
|
|
|
|
Powered by
FUDForum. Page generated in 0.01539 seconds