Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » List attributes
List attributes [message #216468] Tue, 27 January 2009 12:20 Go to next message
aldi is currently offline aldiFriend
Messages: 6
Registered: July 2009
Junior Member
Hi guys.

I want to make a Rounded Rectancle with 2 compartments. The first
compartment will contain a list of attributes like the EClass entity in
the ecore diagram. I've done it with a compartment (Rectangle ->
StackLayout) and a list of Nodes containing only a Label.

The problem is that my list of attributes is not well visualized (not as
the EClass ecore diagram).

What i am doing wrong??
Re: List attributes [message #216493 is a reply to message #216468] Tue, 27 January 2009 15:55 Go to previous messageGo to next message
Alex Boyko is currently offline Alex BoykoFriend
Messages: 200
Registered: July 2009
Senior Member
Hi,

What are the entries in the list? Do you create new views for those?
If list items correspond to structural features of the semantic element,
then use SemanticListCompartmentEditPart. Override
#semanticChildAdded(...) method to create editparts for list items. Use
DecoratedListItemCompartmentEditPart for list items. The best view
implementation for your compartment would be SemanticListCompartment view
(it's in HEAD, but not in the build yet).
Hope this helps.

Cheers,
Alex
Re: List attributes [message #216748 is a reply to message #216493] Thu, 29 January 2009 17:19 Go to previous messageGo to next message
aldi is currently offline aldiFriend
Messages: 6
Registered: July 2009
Junior Member
Alex Boyko wrote:

> Hi,

> What are the entries in the list? Do you create new views for those?
> If list items correspond to structural features of the semantic element,
> then use SemanticListCompartmentEditPart. Override
> #semanticChildAdded(...) method to create editparts for list items. Use
> DecoratedListItemCompartmentEditPart for list items. The best view
> implementation for your compartment would be SemanticListCompartment view
> (it's in HEAD, but not in the build yet).
> Hope this helps.

> Cheers,
> Alex
Hi.

Thanks for your reply. I try to be more clear.

This is what i have.

http://img218.imageshack.us/img218/6359/ab2iw7.th.png

And this is what i want.

http://img520.imageshack.us/img520/237/an1at6.png

Thanks for your help.
Re: List attributes [message #216931 is a reply to message #216748] Fri, 30 January 2009 14:28 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Aldo,

Tou have two options:
1. Set "ListLayout = true" for each GenCompartment inside .gmfgen model.
2. Modify your child nodes to be similar to Ecore diagram child nodes (refer
to the same figure - Label - from both NodeMapping and FeatureLabelMapping
of child nodes)

-----------------
Alex Shatalin
Previous Topic:cotaintment reference
Next Topic:how to change background colour of palette group
Goto Forum:
  


Current Time: Fri Mar 05 20:52:46 GMT 2021

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

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

Back to the top