Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Unmapped compartment node with mapped child nodes
Unmapped compartment node with mapped child nodes [message #214130] Tue, 23 December 2008 17:31 Go to next message
JSP  is currently offline JSP Friend
Messages: 18
Registered: July 2009
Junior Member
Is it possible to create a top node that has several compartment nodes
that contain list elements that can be dropped from the palette. The
container node with the compartments should either be unmapped or mapped
to the domain model element for the diagram because the list elements for
the compartments will be mapped to features of the domain model element.
There will only be one of these container nodes so I would like to create
that with code if it doesn't exist - meaning there doesn't need to be a
creation tool for this node.

Container Node
---------------
Compartment 1 (children mapped to feature of the diagram model element)
-------------
List Item 1
List Item 2
-------------
Compartment 2 (children mapped to feature of the diagram model element)
-------------
List Item 1
List Item 2
----------------

The reason for this is that there is alot of information to display about
the diagram model element but I don't want to have separate top level
nodes for each - putting them in some compartments will save alot of space.

Is this possible?

I also want to be able to have some creation tools that only create
notation elements - meaning they are not mapped to domain elements. I get
errors every time I try to create the gmfgen from my gmfmap if my top node
does not have a containment reference and my node mapping does not have an
element type.

Is there a way to have a node without a semantic element generated from
the gmfmap?
Re: Unmapped compartment node with mapped child nodes [message #214261 is a reply to message #214130] Tue, 30 December 2008 13:08 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello JSP,

You can try creating Top-level Node mapping associated with diagram domain
element (having no containment feature) and put all the child elements below
this mapping, but you have to ignore all validation errors + generated code
first and then you have to manually modify generated code to correctly assign
diagram element to the top-level singleton one.

-----------------
Alex Shatalin
Previous Topic:.gmfgen overwriting listLayout
Next Topic:linking of properties with widgets.
Goto Forum:
  


Current Time: Sun Sep 22 13:37:52 GMT 2024

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

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

Back to the top