Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Filling Palette with elements from an Ecore Model.
Filling Palette with elements from an Ecore Model. [message #231229] Mon, 25 May 2009 15:32 Go to next message
Juan Pedro Silva is currently offline Juan Pedro SilvaFriend
Messages: 258
Registered: July 2009
Senior Member
Hello everybody,
I'm taking my first steps with GMF, and would
appreciate some help on planning the strategy to address this issue.

What I want to do is to have a palette filled with elements with
pre-populated attribute values. I mean, specific instances of
metaclasses. I'm thinking on nodes this time, not currently interested
in links. I thought that a good idea would be to have a instance model
of the metamodel that could hold all these elements, and then load the
palette with this data. In that way, I could publish an extension point
into where plugins containing other models could be plugged, and in that
way feed the palette. I didn't find anything quite like that, although I
perhaps didn't know where to look for it.

I've been wondering around the documentation (the tutorials, Part 3 more
specifically, some articles, some threads in the newsgroups), and I
believe I can use some ideas I've found there, but I would surely
appreciate a little help to start.

Thank you all in advance.
Best regards,
Juan Pedro
Re: Filling Palette with elements from an Ecore Model. [message #231339 is a reply to message #231229] Tue, 26 May 2009 10:50 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Juan,

> What I want to do is to have a palette filled with elements with
> pre-populated attribute values. I mean, specific instances of
> metaclasses. I'm thinking on nodes this time, not currently interested
This is not supported by GMF now. You can add your own tool to the palette,
plug it in using extension point, but there is not ready solution for using
"template" nodes to create new diagram nodes.

-----------------
Alex Shatalin
Re: Filling Palette with elements from an Ecore Model. [message #231369 is a reply to message #231339] Tue, 26 May 2009 11:33 Go to previous message
Juan Pedro Silva is currently offline Juan Pedro SilvaFriend
Messages: 258
Registered: July 2009
Senior Member
Thank you Alex for your answer.
I found a paper by Benjamin Hähensteiger et al. titled "Extending the
Eclipse BPEL Designer with custom Activities" which does something
similar to what I intend, but based on specific BPEL-Designer's API.
I may look at what is already done in the BPEL Designer to see if I can
base my development in that (or at least take some good ideas from it).
Best regards,
Juan Pedro

Alex Shatalin escribió:
> Hello Juan,
>
>> What I want to do is to have a palette filled with elements with
>> pre-populated attribute values. I mean, specific instances of
>> metaclasses. I'm thinking on nodes this time, not currently interested
> This is not supported by GMF now. You can add your own tool to the
> palette, plug it in using extension point, but there is not ready
> solution for using "template" nodes to create new diagram nodes.
>
> -----------------
> Alex Shatalin
>
>
Previous Topic:Deletion of elements and OpenDiagramEditPolicy
Next Topic:Updating property page title bar on name change of the node without reselecting the node
Goto Forum:
  


Current Time: Fri Mar 29 15:48:15 GMT 2024

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

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

Back to the top