Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Grouping Nodes and defining property for the group
Grouping Nodes and defining property for the group [message #791792] Mon, 06 February 2012 04:07 Go to next message
ganesh ram is currently offline ganesh ram
Messages: 26
Registered: January 2012
Junior Member
Hi,

On the eclipse canvas i am able to group nodes by using the "org.eclipse.gmf.runtime.common.ui.services.action.contributionItemProviders" extension point.

Now i want to have certain attributes for that group.
for eg. if i have created 2 groups with 2 nodes in each group, i want to add a group property "name" which has the value "group1" (for the first group) and "group2"(for the second group).

How could i accomplish this ?

Thanks,
Ganesh
Re: Grouping Nodes and defining property for the group [message #792003 is a reply to message #791792] Mon, 06 February 2012 08:57 Go to previous message
Michael Golubev is currently offline Michael Golubev
Messages: 373
Registered: July 2009
Senior Member
Hello,

The "group" you are referring is just a way how the diagram editor displays/behaves with respect to some properties of the notation model.

If you want those groups to store some properties, you need to make the "real" -- that is to include the grouping element into your semantic model and use the compartments instead of relying to the Group/Ungroup behavior.

Regards,
Michael "Borlander" Golubev
at Montages Think Tank, Prague, Czech Republic
Montages AG, Z├╝rich, Switzerland
Previous Topic:Some duvids about GMF model format
Next Topic:Using Textarea instead of WrappingLabel
Goto Forum:
  


Current Time: Fri Apr 18 19:32:42 EDT 2014

Powered by FUDForum. Page generated in 0.02165 seconds