Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Associating Multiple Views With One Model
Associating Multiple Views With One Model [message #185183] Thu, 23 June 2005 13:00 Go to next message
Eclipse UserFriend
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 #185200 is a reply to message #185183] Thu, 23 June 2005 13:15 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: harsh.ti.com

Alan,

I ran into the same problem. And I did exactly what you did. I am not
sure if there is a better way since the EditPartFactory is where you
decide which EditPart to load.

Harsh
Re: Associating Multiple Views With One Model [message #185496 is a reply to message #185183] Sun, 26 June 2005 01:05 Go to previous message
Eclipse UserFriend
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.
>
>
Previous Topic:Can I add another viewer on GraphicalEditorWithPalette?
Next Topic:Activating connection
Goto Forum:
  


Current Time: Mon May 06 11:18:57 GMT 2024

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

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

Back to the top