Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Shared Editing Domain, Drag and Drop from Explorer, multiple Diagrams
Shared Editing Domain, Drag and Drop from Explorer, multiple Diagrams [message #551090] Thu, 05 August 2010 08:07 Go to next message
masija . is currently offline masija .Friend
Messages: 59
Registered: July 2010
Member
Hi @ all,

I am currently working on a GMF-plugin, which provides 2 diagram types.
Diagram1:
should contain elements A and B, and links from A -> B.
Diagram2:
should contain elements A and C, and links from A -> C.
In addition it must be possible to drag elements A from the project
explorer from Diagram1 to Diagram2.

I tried to achieve this functionality by aktivating the
shortcut-function of GMF (see http://www.jevon.org/wiki/GMF_Drag_Drop )
and tried to use a shared Editing Domain. (see the Tutorial in the
Eclipse Wiki).
Unfortunately this doesn't work for me:
Drag and drop is only possible between diagrams of the same type.
(Elements from Diagram1 to another Diagram1)
But also here it is very buggy and the diagrams will freeze often:
(Create elements in diagram1a, create elements in diagram1b, save,
changing diagram1a, save, and normaly at this stage one of the editors
freezes)

The next problem is, that if I drag elements from diagram1a to
diagram1b, and add other native elements to diagram1b, the
shortcut-element will immediately disappear. If I want to link a
shortcut-element with an existing element, save, and reopen the diagram,
the linked shortcut-element is gone and the outgoing link of the
remaining element ist pointing to infinity, out of the palette :/


I am completely stuck at this moment, so I would be happy if someone has
some tipps, sollutions, or perhaps an example project or something which
could help me...

Best regards,
Masija
Re: Shared Editing Domain, Drag and Drop from Explorer, multiple Diagrams [message #552337 is a reply to message #551090] Wed, 11 August 2010 18:58 Go to previous message
masija . is currently offline masija .Friend
Messages: 59
Registered: July 2010
Member
Masija wrote on Thu, 05 August 2010 04:07
Hi @ all,

The next problem is, that if I drag elements from diagram1a to
diagram1b, and add other native elements to diagram1b, the
shortcut-element will immediately disappear. If I want to link a
shortcut-element with an existing element, save, and reopen the diagram,
the linked shortcut-element is gone and the outgoing link of the
remaining element ist pointing to infinity, out of the palette :/



It seems to me, that the problem was ???CanonicalEditPolicy, which extends by default CanonicalEditPolicy.

If ???CanonicalEditPolicy extends the CanonicalConnectionEditPolicy instead, this problem is solved.
(At least I hope so. At first view, shortcuts are working correctly.)

Previous Topic:Change the category for the diagram new wizard
Next Topic:Hide an attribute
Goto Forum:
  


Current Time: Thu Apr 25 12:12:18 GMT 2024

Powered by FUDForum. Page generated in 0.03119 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top