Skip to main content



      Home
Home » Eclipse Projects » GEF » Associating Multiple Views With One Model
Associating Multiple Views With One Model [message #185183] Thu, 23 June 2005 09: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 09: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] Sat, 25 June 2005 21: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 Jul 07 13:58:57 EDT 2025

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

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

Back to the top