stoing location/size of visuals in edit part ? [message #187227] |
Sat, 09 July 2005 14:14 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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.
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.03905 seconds