Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Properties of Compartment
Properties of Compartment [message #174774] Thu, 28 February 2008 11:24 Go to next message
Eclipse UserFriend
Originally posted by: gregory.vanseghbroeck.intec.ugent.be

Hello,

When I set some properties (LayoutManager, size, ...) in my gmgraph file
for the figure acting as the container of a compartment, all these
settings get discarded when the gmfgen is created. Is this intentionally,
and if so, where can I easily set these properties?

Regards,
Gregory
Re: Properties of Compartment [message #175036 is a reply to message #174774] Sat, 01 March 2008 11:47 Go to previous messageGo to next message
Kamesh Sampath is currently offline Kamesh SampathFriend
Messages: 213
Registered: July 2009
Senior Member
Hi Gregory,

I have also had this problem with GMFTOOL, the reason i think is that when
you keep the all the model files open in the eclipse editor and regenrate
the GMFgen ,the GMF gen has already loaded the other models like *.gmfgraph
and *.gmftool (stale model) doesnt have your changes , so when the *.gmfgen
is regenerated it tries to refresh or reload the other model files
associated with GMFgen (stale models) thats that reason your property
changes are lost.

But if you close the GMFGEN and GMFMAP and make the chages and regenrate the
GMFGEN things stay in tact.

If am worng can anyone please correct my preception .

Regards,
Kamesh


"Gregory Van Segbroeck" <gregory.vanseghbroeck@intec.ugent.be> wrote in
message news:ae2813cd3899964c6ce1c4daf2d9bdae$1@www.eclipse.org...
> Hello,
>
> When I set some properties (LayoutManager, size, ...) in my gmgraph file
> for the figure acting as the container of a compartment, all these
> settings get discarded when the gmfgen is created. Is this intentionally,
> and if so, where can I easily set these properties?
>
> Regards,
> Gregory
>
Re: Properties of Compartment [message #175256 is a reply to message #175036] Mon, 03 March 2008 19:27 Go to previous message
Eclipse UserFriend
Originally posted by: jan.koehnlein.web.de

All four model editors shipped with GMF (graph, tool, map, gen) will
instantiate a new copy of all elements from the referenced files. This
is due to the fact that each editor has its own EditingDomain and
thereby ResourceSet.

It is even worse: When you reorder elements, e.g. in the graph model
editor, your map model will be garbled, as GMF does not even use EMF
resources with constant IDs (it uses XPath expression instead).

The best way to avoid any problems is - once you have created graph,
tool and map model - to edit these three models exclusively in the map
editor.

Regards
Jan



Kamesh Sampath wrote:
> Hi Gregory,
>
> I have also had this problem with GMFTOOL, the reason i think is that when
> you keep the all the model files open in the eclipse editor and regenrate
> the GMFgen ,the GMF gen has already loaded the other models like *.gmfgraph
> and *.gmftool (stale model) doesnt have your changes , so when the *.gmfgen
> is regenerated it tries to refresh or reload the other model files
> associated with GMFgen (stale models) thats that reason your property
> changes are lost.
>
> But if you close the GMFGEN and GMFMAP and make the chages and regenrate the
> GMFGEN things stay in tact.
>
> If am worng can anyone please correct my preception .
>
> Regards,
> Kamesh
>
>
> "Gregory Van Segbroeck" <gregory.vanseghbroeck@intec.ugent.be> wrote in
> message news:ae2813cd3899964c6ce1c4daf2d9bdae$1@www.eclipse.org...
>> Hello,
>>
>> When I set some properties (LayoutManager, size, ...) in my gmgraph file
>> for the figure acting as the container of a compartment, all these
>> settings get discarded when the gmfgen is created. Is this intentionally,
>> and if so, where can I easily set these properties?
>>
>> Regards,
>> Gregory
>>
>
>
Previous Topic:modify the default phantom node creation
Next Topic:2.1 M5 not opening new editor on double click of node, 2.0.2 does
Goto Forum:
  


Current Time: Wed Apr 24 13:53:38 GMT 2024

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

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

Back to the top