Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » composite figure
composite figure [message #197416] Wed, 16 July 2008 12:08 Go to next message
yeliu is currently offline yeliuFriend
Messages: 145
Registered: July 2009
Senior Member
Hello,
I have define a figure descriptor like this:
Figure Descriptor xxxFigure
-Rectangle xxxFigure
--XY layout
--Foreground cyan
--Scalable Polygon body
----(21,1)
----(26,1)
----(26,6)
----(46,6)
----(46,11)
----(36,11)
----(36,16)
----(31,16)
----(31,11)
----(16,11)
----(16,16)
----(11,16)
----(11,11)
----(1,11)
----(11,6)
----(21,6)
----(21,1)
--Label xxxNameFigure
-Child access getxxxNameFigure.
When I draw this figure in the generated editor,there is only a Rectangle
without outline,and the name of the figure was shown in the upper left
corner.This is definitely not what it should be (there is not setting
options in XY layout).Where had gone wrong?


Thanks a lot!

Ye Liu
Re: composite figure [message #197433 is a reply to message #197416] Wed, 16 July 2008 12:43 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Ye,

> without outline,and the name of the figure was shown in the upper left
> corner.This is definitely not what it should be (there is not setting
> options in XY layout).Where had gone wrong?
I think you have to add XYLayoutData instances below the "Label" and Scalable
Polygon elements in the model - this is a way to specify position for an
element inside XYLayout

-----------------
Alex Shatalin
Re: composite figure [message #197526 is a reply to message #197433] Thu, 17 July 2008 06:58 Go to previous messageGo to next message
yeliu is currently offline yeliuFriend
Messages: 145
Registered: July 2009
Senior Member
Hi,
Even though I add 'XYLayout Data', nothing expected happen.I'm trying to
follow the GMF tutorial part 3.There are several things about Composit
figure I find weird.
1. I couldn't find Dmension or Point in the context of Scalable Polygon .
2. the code shown in the tutorial doesn't correspond to the setting
image.e.g.nothing about XY Layout is written in the code,but XY layout is
shown in the setting image;'StackLayout','children
Rectangle','FlowLayout'also appear in the code but nothing in the setting
image.


Long for you reply!

Ye Liu
Re: composite figure [message #197604 is a reply to message #197526] Thu, 17 July 2008 09:38 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Ye,

Not sure about the screenshots used in a tutorial..
If you just need .gmfgaph file used in this tutorial you can get latest version
from GMF CVS: dev.eclipse.org:/cvsroot/modeling co org.eclipse.gmf/examples/org.eclipse.gmf.examples.mindmap

-----------------
Alex Shatalin
Re: composite figure [message #197728 is a reply to message #197604] Thu, 17 July 2008 12:56 Go to previous message
yeliu is currently offline yeliuFriend
Messages: 145
Registered: July 2009
Senior Member
Hello,
Thanks for remind me to check out the newest version of mindmap,and I
have followed the setting in the .gengraph model except I haven't set the
'Edit Pattern','Editor Pattern',and 'view Pattern' since I don't need to
have special label.Besides. the attribute in xxxEditPart-xxxFigure class
was naturally set to true, so I don't think I need to make changes.
But my figure still has the symptom described before.I don't know what
else settings I have to do to draw the figure as I expected.


Thanks

Ye Liu
Previous Topic:Calling a method in the domain object from the editor
Next Topic:Broken code generation
Goto Forum:
  


Current Time: Thu Apr 25 10:43:53 GMT 2024

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

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

Back to the top