Skip to main content



      Home
Home » Modeling » Graphiti » Add containment Feature for an Object(Feature so that one object figure can be dropped/contained by another object)
Add containment Feature for an Object [message #1059027] Thu, 16 May 2013 05:49 Go to next message
Eclipse UserFriend
Hello,
I am wondering whether Graphiti provides the containment feature for an object same as that of Eugenia. For example, if I have two objects, object1 and object2, and I want object2 to be dropped over object1 and then rendered as contained figure of object1 figure. It is one of the default functionality in Eugenia EMF framework. Is there any way to do this in Graphiti. I tried to implement it somehow, but the logic doesn't seem to work. Any suggestions will be helpful.
Thanks,
Cheers,
Heeren
Re: Add containment Feature for an Object [message #1059064 is a reply to message #1059027] Thu, 16 May 2013 09:40 Go to previous messageGo to next message
Eclipse UserFriend
Hi,
Some examples you can find in projects:

BPMN 2.0 Modeler:
https://git.eclipse.org/c/bpmn2-modeler/org.eclipse.bpmn2-modeler.git
Where you can add a Boundary Event to a Task.

Activiti Designer:
https://github.com/Activiti/Activiti-Designer.git
The same functionality, but more types of Boundary Events

Marek
Re: Add containment Feature for an Object [message #1059206 is a reply to message #1059064] Fri, 17 May 2013 05:58 Go to previous message
Eclipse UserFriend
Thank you very much for the reply.
I did it by defining the particular parent component for containment as the targetContainer instead of Canvas.
Cheers
Re: Add containment Feature for an Object [message #1059294 is a reply to message #1059027] Thu, 16 May 2013 12:17 Go to previous message
Eclipse UserFriend
On 16.05.13 06.14, Heeren Sharma wrote:
> Hello,
> I am wondering whether Graphiti provides the containment feature for an
> object same as that of Eugenia. For example, if I have two objects,
> object1 and object2, and I want object2 to be dropped over object1 and
> then rendered as contained figure of object1 figure. It is one of the
> default functionality in Eugenia EMF framework. Is there any way to do
> this in Graphiti.

GMF (which Eugenia provides a textual syntax for, if I'm not mistaken)
lets you model the relation between the domain model and graphical
notation. In Graphiti, this must be done by hand. Take a look at Spray,
which does something similar for Graphiti.

Hallvard
Previous Topic:Decorators on Connections
Next Topic:Graphiti 0.10 in indigo, juno and kepler
Goto Forum:
  


Current Time: Wed Jul 23 11:43:45 EDT 2025

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

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

Back to the top