Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community Forumscomposite figure
https://www.eclipse.org/forums/index.php/mv/msg/62587/197416/#msg_197416
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]]>yeliu2008-07-16T12:08:58-00:00Re: composite figure
https://www.eclipse.org/forums/index.php/mv/msg/62587/197433/#msg_197433
> 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]]>Alexander Shatalin2008-07-16T12:43:47-00:00Re: composite figure
https://www.eclipse.org/forums/index.php/mv/msg/62587/197526/#msg_197526
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]]>yeliu2008-07-17T06:58:32-00:00Re: composite figure
https://www.eclipse.org/forums/index.php/mv/msg/62587/197604/#msg_197604
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]]>Alexander Shatalin2008-07-17T09:38:31-00:00Re: composite figure
https://www.eclipse.org/forums/index.php/mv/msg/62587/197728/#msg_197728
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.