Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Creation Tools for pre-defined Elements(Again)
Creation Tools for pre-defined Elements(Again) [message #151361] Mon, 17 September 2007 13:41
Eclipse UserFriend
Originally posted by: prodanov.tk.informatik.tu-darmstadt.de

Hello everyone,

I want to create Palette Entries for Elements with set properties, but the
thing is, that it has to be dinamicly. This means that I have the
properties for an Element on external .ecore file. I read this file and
then decide how many Palette Entries should I create. I.e. we have
"MyElement" and we have a Palette Entry for unspecified "MyElement"(usual
from GMF genereted tool), but from the external .ecore file, we read that
we have there "MyElement" with set properties.In this case we can have
i.e. 10 different "MyElements" with different properties and for this 10
"MyElements" we have 10 different Palette Entries. The parsing from the
file is already done. I distinguish every Element and every property of
them and I'm at the point where I have to create Pelette Entry, which
itself has to have a proper Create Tool.So the problem now is how GMF will
work with a Creation Factory which I have written. My Creation Factory can
read the properties and the getNewObject() Method gives back the Element
from the external .ecore whit set properties. As I have seen GMF passes
only "IElementType"s and than decides which Element should EMF create, but
I want the element from the my CreationFactory to be displayed on the
diagram and attached correctly to the model. Usually in GEF it's possible
to set a CreationFactory to the Tool and the Factory gives the Object to
be visiualized, but how the things are in GMF?

I'll be very thankful if somebody can help me with an advice, idea or
something

Cheers!

Martin
Previous Topic:Diagram partitioning, how to programatically open a diagram?
Next Topic:Displaying In-Memory Models
Goto Forum:
  


Current Time: Sat Jul 27 18:37:57 GMT 2024

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

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

Back to the top