Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Figures in a plugin and XYLayout
Figures in a plugin and XYLayout [message #182609] Fri, 11 April 2008 09:14 Go to next message
Eclipse UserFriend
Hello,

I'm generating the figure in a separate plugin (right click on the
..gmfgraph -> 'Generate Figure Plug-in...' and in the .gmfgraph one of
the figure has an XYLayout. In the .gmfmap, i referenced the
mirrored.gmfgraph. If i don't put again the XYLayout child on the
figure, the layout doesn't work.

Why should we specify that two times?

Thanks in advance.
Re: Figures in a plugin and XYLayout [message #182696 is a reply to message #182609] Fri, 11 April 2008 13:57 Go to previous messageGo to next message
Eclipse UserFriend
Hello Youmm P.,

Layout you have in .gmfgraph is a GEF layout responsible for laying out the
figures. If you are talking about chid nodes layout inside a compartment
(AFAIU) then this is a little bit different property - for the deggining
it is not possible to map any GEF layout to the child container layouts..

-----------------
Alex Shatalin
Re: Figures in a plugin and XYLayout [message #182955 is a reply to message #182696] Mon, 14 April 2008 12:53 Go to previous messageGo to next message
Eclipse UserFriend
If you are talking about chid nodes layout inside a
> compartment (AFAIU) then this is a little bit different property - for
> the deggining it is not possible to map any GEF layout to the child
> container layouts..
The question is more: should i put the XY Layout on the
mirrored.gmfgraph or on the primary .gmfgraph, and regenerates the
plugin? Should the .gmfmap only references the mirrored.gmgraph?
Re: Figures in a plugin and XYLayout [message #183024 is a reply to message #182955] Tue, 15 April 2008 06:11 Go to previous messageGo to next message
Eclipse UserFriend
Hello Youmm P.,

> The question is more: should i put the XY Layout on the
> mirrored.gmfgraph or on the primary .gmfgraph, and regenerates the
> plugin? Should the .gmfmap only references the mirrored.gmgraph?
If you are generating separate plugin with figures then you should reference
only mirrored.gmgraph model from your .gmfmap one. So, if something works
wrong while generating separate plugin with figures (behaviour of the standalone
figures is different from the inner one) then please submit corresponding
bugzilla entry for it.

-----------------
Alex Shatalin
Re: Figures in a plugin and XYLayout [message #183030 is a reply to message #183024] Tue, 15 April 2008 06:23 Go to previous messageGo to next message
Eclipse UserFriend
> If you are generating separate plugin with figures then you should
> reference only mirrored.gmgraph model from your .gmfmap one. So, if
> something works wrong while generating separate plugin with figures
> (behaviour of the standalone figures is different from the inner one)
> then please submit corresponding bugzilla entry for it.
Ok but when you update the mirrored.gmfgraph how should you update the
code of the figures plugin project? You can't use easily the
mirrored.gmgraph to regenerate the same plugin.
Re: Figures in a plugin and XYLayout [message #183048 is a reply to message #183030] Tue, 15 April 2008 06:48 Go to previous message
Eclipse UserFriend
Hello Youmm P.,

> Ok but when you update the mirrored.gmfgraph how should you update the
> code of the figures plugin project? You can't use easily the
> mirrored.gmgraph to regenerate the same plugin.
Idea was: you can use original.gmfgraph for generating mirrored.gmfgraph
+ plugin with the code. Then you can use mirrored.gmfgraph from the .gmfmap
file referencing figures. If you need to change generated figures then you
have to modify original.gmfgraph and re-generated mirrored one with figures
code.

-----------------
Alex Shatalin
Previous Topic:Rotating the Image
Next Topic:2.1.0 M6a double on element click shows only the core propetys tab
Goto Forum:
  


Current Time: Thu Jul 17 20:51:54 EDT 2025

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

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

Back to the top