Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Populating Diagram with all domain objects
Populating Diagram with all domain objects [message #902616] Fri, 17 August 2012 15:37 Go to next message
drew frantz is currently offline drew frantzFriend
Messages: 340
Registered: July 2009
Senior Member
I have a domain model that I associated with the diagram by file extension
by Dnd of the file to the surface (similar to how the library example adapts
in adaptAddLibraryContext, I now want to populate the diagram with all the
objects that exist in the domain model on the diagram surface, I have Add
and Create features for each and palette drops work fine, but I am not sure
which feature to override in order to populate the diagram with all shapes
when I open the diagram. Is there an example of this?
thanks,drew
Re: Populating Diagram with all domain objects [message #902918 is a reply to message #902616] Tue, 21 August 2012 07:37 Go to previous message
Christian Brand is currently offline Christian BrandFriend
Messages: 36
Registered: July 2009
Location: Walldorf/Germany
Member
I am not entirely sure to understand the problem completely.
I think you have a domain model and want to see it completely visualized in your diagram automatically. In this case you should implement an update feature for your diagram, which does all the update stuff.
You can also have a look at org.eclipse.graphiti.features.impl.DefaultUpdateDiagramFeature.


Christian Brand
SAP AG - Walldorf - Germany
Re: Populating Diagram with all domain objects [message #903702 is a reply to message #902616] Mon, 20 August 2012 11:51 Go to previous message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1931
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Yes, have a look at
http://www.eclipse.org/forums/index.php/mv/msg/292705/800107/

Michael
Previous Topic:org.eclipse.swt.SWTException: Failed to execute runnable
Next Topic:Resize shape (only horizontal)
Goto Forum:
  


Current Time: Tue Apr 23 07:02:18 GMT 2024

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

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

Back to the top