Associating Multiple Views With One Model [message #185183] |
Thu, 23 June 2005 13:00 |
Eclipse User |
|
|
|
Originally posted by: a.morgan.pilz.ie
Hey,
Is there an efficient way to associate multiple views with one model ?
I was able to do it like so:
Model (with flag for View1 or View2)
EditPart1
View1
EditPart2
View2
In EditPartFactory I had to check the Model flag before deciding which
EditPart to return.
Is there an easier/better way to do this ?
Thanks,
Alan.
|
|
|
|
Re: Associating Multiple Views With One Model [message #185496 is a reply to message #185183] |
Sun, 26 June 2005 01:05 |
Eclipse User |
|
|
|
Originally posted by: none.unknown.com
This is pretty much it. I don't see how this is inefficient. As for the
view flag, there has to be some distinguishing factor that helps you
determine which EditPart to use. Whatever that is, that's what you check.
"Alan Morgan" <a.morgan@pilz.ie> wrote in message
news:d9ec52$cov$2@news.eclipse.org...
> Hey,
>
> Is there an efficient way to associate multiple views with one model ?
>
> I was able to do it like so:
>
> Model (with flag for View1 or View2)
>
> EditPart1
> View1
>
> EditPart2
> View2
>
> In EditPartFactory I had to check the Model flag before deciding which
> EditPart to return.
>
> Is there an easier/better way to do this ?
>
> Thanks,
> Alan.
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04639 seconds