Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Parameterized creation tool?
Parameterized creation tool? [message #213470] Fri, 12 December 2008 18:18
Eclipse UserFriend
Originally posted by: an.ma.web.de

Hello,

I have a model element (let's say Rectangle), which can be parameterized
via an enum feature (let's say color : enum { RED, GREEN, YELLOW }). I
can already create new rectangles via the palette and change the color
feature in the properties tab. However, I would like to have additional
creation tools in the palette, which directly create a red or green
rectangle.

I've already searched the newsgroup for a solution and found [1]. As far
as I can see, for each of the colors I would have to define an
additional top level node in my gmfmodel, which includes a type model
facet with an appropriate feature initializer. That's a lot of
unnecessary duplication in the specification and the generated code.

Is there a more elegant way to achieve this?

[1] How to add a parameterized tool entry?
news://news.eclipse.org:119/f9pknq$mb7$1@build.eclipse.org
--
Andreas
Previous Topic:Programatically creating diagram for my EMF model
Next Topic:[Announce] GMF 2.2.0 I200812121031 is available
Goto Forum:
  


Current Time: Fri Apr 19 08:44:50 GMT 2024

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

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

Back to the top