Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » stoing location/size of visuals in edit part ?
stoing location/size of visuals in edit part ? [message #187227] Sat, 09 July 2005 14:14 Go to next message
Eclipse UserFriend
Originally posted by: psidle.cinci.rr.com

Hi,

I'd like to store up the location/size information some where other than
the business model. All the GEF examples store such information in the
model elements for resize and move notification. Do I have other
alternative ? What is the best practise ?

Thanks for any information.
Re: stoing location/size of visuals in edit part ? [message #187233 is a reply to message #187227] Sat, 09 July 2005 14:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: christian.sell.netcologne.de

Hello,

I have pondered the issue myself for quite a while, because I did not
like the idea of putting display-specific infrastructure into my model
classes.
My conclusion is that if you really want (or have to) keep your model
clean, the only way is to introduce an intermediary model layer between
the editparts and the model proper. Here you can add location and other
display info - which you may want to store permanently later - and
property change support etc.
The EditParts themselves are not well suited for this, as you may not
have them handy when you need the data (e.g., storing or reading from file).

hth, chris

Phil Lee wrote:
> Hi,
> I'd like to store up the location/size information some where other than
> the business model. All the GEF examples store such information in the
> model elements for resize and move notification. Do I have other
> alternative ? What is the best practise ?
> Thanks for any information.
>
Re: stoing location/size of visuals in edit part ? [message #187238 is a reply to message #187227] Sat, 09 July 2005 18:32 Go to previous message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
The EDiagram example stores this information in the view model, not the
business one.

"Phil Lee" <psidle@cinci.rr.com> wrote in message
news:85a86cdf72cc6898701d321b13d05edc$1@www.eclipse.org...
> Hi,
> I'd like to store up the location/size information some where other than
> the business model. All the GEF examples store such information in the
> model elements for resize and move notification. Do I have other
> alternative ? What is the best practise ?
> Thanks for any information.
>
Previous Topic:GEF 3.1 Performance
Next Topic:Snap to geometry and local coordinates
Goto Forum:
  


Current Time: Thu Dec 12 18:16:43 GMT 2024

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

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

Back to the top