Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Multiple figure types for one Ecore class
Multiple figure types for one Ecore class [message #536354] Thu, 27 May 2010 18:16
Eclipse UserFriend
Originally posted by: harrisb.ociweb.com

Hi,

I would like to have multiple figures representing the same Ecore class.
A solution to is provided at
http://wiki.eclipse.org/index.php/GMF_Tips#Different_Figures _for_one_Ecore_class

However, the solutions seems a little impure in that it involves
extending the domain class with a presentation attribute (i.e. the
CommonClassType attribute used in the solution example).

By contrast, I looked at the UML2 GMF model code for the Package element
since a Package can either be shown using frame notation or non-frame
notation. It doesn't add a presentation attribute to the Package model
but instead modifies the GMF generator model by adding a GenTopLevelNode
for the Package as Frame figure with a SpecializationType with
displayName of "Package (Frame notation)" which I assume is what's used
for the palette tool name for the Package as Frame creator.

I'm new to GMF so I'm complete sure if it's accurate for me to say these
are two solutions to the same problem. Also, the GenTopLevelNode added
for the Package as Frame seems non-trivial and it's not clear to me what
drove all the settings for this element.

If my comparison is accurate is there a simple example or any
documentation to help guide me to the usage of specialization type to
support more than one figure type for the same Ecore class?

Thanks,
Byron
Previous Topic:Basic questions about links
Next Topic:Keeping contents of two nodes synchronized
Goto Forum:
  


Current Time: Sat Jul 27 15:05:15 GMT 2024

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

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

Back to the top