Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 09:49 Go to next message
Heeren Sharma is currently offline Heeren SharmaFriend
Messages: 7
Registered: May 2013
Junior Member
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 13:40 Go to previous messageGo to next message
Marek Jagielski is currently offline Marek JagielskiFriend
Messages: 95
Registered: April 2012
Member
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 09:58 Go to previous message
Heeren Sharma is currently offline Heeren SharmaFriend
Messages: 7
Registered: May 2013
Junior Member
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 16:17 Go to previous message
Hallvard Traetteberg is currently offline Hallvard TraettebergFriend
Messages: 672
Registered: July 2009
Location: Trondheim, Norway
Senior Member
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: Sat Aug 08 16:05:43 GMT 2020

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

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

Back to the top