Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » About Model!
About Model! [message #240249] Tue, 11 December 2007 15:10 Go to next message
Hoping White is currently offline Hoping WhiteFriend
Messages: 71
Registered: July 2009
Member
Hello everyone,
I am new to GEF and I have read some gef examples. Now I have some
confusion about model. Did the model should include the properties of the
figure such as location and size or this is just the job for layout manager?
For what I have read, I see all the model kind of have some thing like
contraint, that define the location and size of the figure in the model.A
few application even design two kinds of models,one for figure, and one for
real use.and they have some mapping relations.
Now here's my question, if I don't care about the location and size of
the figure, and I just want the editor to use some layout policy to layout
my figures, how can I do? I mean if I move or resize these figures, the
editor won't marked as dirty, and when I programtically add some model, the
editor can layout automatically.
Thanks very much!

--
Hoping White
Re: About Model! [message #240268 is a reply to message #240249] Wed, 12 December 2007 15:58 Go to previous message
Anthony Hunter is currently offline Anthony HunterFriend
Messages: 446
Registered: July 2009
Senior Member
Hi Hoping,

If you look at the GEF flow example, the nodes and connections are
automatically arranged and location and side is not persisted. The GEF
shapes example allows to user to set location and side, so they are
persisted in the model.

Cheers...
Anthony

"Hoping White" <baihaoping@gmail.com> wrote in message
news:fjm98s$qav$1@build.eclipse.org...
> Hello everyone,
> I am new to GEF and I have read some gef examples. Now I have some
> confusion about model. Did the model should include the properties of the
> figure such as location and size or this is just the job for layout
> manager? For what I have read, I see all the model kind of have some thing
> like contraint, that define the location and size of the figure in the
> model.A few application even design two kinds of models,one for figure,
> and one for real use.and they have some mapping relations.
> Now here's my question, if I don't care about the location and size of
> the figure, and I just want the editor to use some layout policy to layout
> my figures, how can I do? I mean if I move or resize these figures, the
> editor won't marked as dirty, and when I programtically add some model,
> the editor can layout automatically.
> Thanks very much!
>
> --
> Hoping White
>
Previous Topic:Problem:Capturing diagram on shell
Next Topic:Disable palette entry
Goto Forum:
  


Current Time: Sun May 12 22:59:10 GMT 2024

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

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

Back to the top