Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » set elements' attributes in different form
set elements' attributes in different form [message #206775] Wed, 24 September 2008 11:52 Go to next message
yeliu is currently offline yeliuFriend
Messages: 145
Registered: July 2009
Senior Member
Hello,
I have a node called Data with two attributes: name and dataEntry
List<String>,and I want the node shown in the Graphical editor looks like
this:
____________
DataName |
____________|
DataEntry1 |
DataEntry2 |
DataEntry3 |
... |
____________|

Actually, a rectangle which show two attributes in two separate part, and
the DataEntry attributes can be shown in the form of list.How to set this
in .gmfgraph?


Thanks a lot!

Ye
Re: set elements' attributes in different form [message #206836 is a reply to message #206775] Wed, 24 September 2008 14:05 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello ye,

Unfortunately for now you can use only EClass instances as a domain model
element in NodeMapping. So, you can "wrap" these strings into EClasse and
create containment reference from "Data" EClass to this one. As a result
you'll be able to map DataEntry to a subnode of Data node and work with DataEntries
just like with "EAttributes" in EClass on Ecore sample diagram.

-----------------
Alex Shatalin
Previous Topic:DiagramIOUtil 'discouraged access' warning in generated GMF class
Next Topic:How to generate a link with multiple sources and targets
Goto Forum:
  


Current Time: Thu Apr 18 21:13:37 GMT 2024

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

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

Back to the top