Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » about GraphicalViewer's Selection.
about GraphicalViewer's Selection. [message #195509] Sun, 11 September 2005 05:48 Go to next message
Eclipse UserFriend
Originally posted by: wudong.liu.gmail.com

As i know, the GraphicalViewer's selection is a collection of EditPart.
I'm wondering if it's possible to change the selection to the model
object instead of EditPart?
Re: about GraphicalViewer's Selection. [message #195524 is a reply to message #195509] Sun, 11 September 2005 06:41 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mvsteenbergen.eljakim.scratch-this.nl

What exactly are you trying to achieve?

Regards,

Martijn.

Wudong Liu wrote:
> As i know, the GraphicalViewer's selection is a collection of EditPart.
> I'm wondering if it's possible to change the selection to the model
> object instead of EditPart?
Re: about GraphicalViewer's Selection. [message #195532 is a reply to message #195509] Sun, 11 September 2005 06:50 Go to previous messageGo to next message
Fabian Wolf is currently offline Fabian WolfFriend
Messages: 96
Registered: July 2009
Member
Wudong Liu wrote:

> As i know, the GraphicalViewer's selection is a collection of EditPart.
> I'm wondering if it's possible to change the selection to the model
> object instead of EditPart?

Just loop over all those EditParts and getModel()
Re: about GraphicalViewer's Selection. [message #195574 is a reply to message #195524] Mon, 12 September 2005 04:02 Go to previous message
Eclipse UserFriend
Originally posted by: wudongs.gmail.com

Martijn van Steenbergen 写道:
> What exactly are you trying to achieve?
>
> Regards,
>
> Martijn.
>
> Wudong Liu wrote:
>
>>As i know, the GraphicalViewer's selection is a collection of EditPart.
>>I'm wondering if it's possible to change the selection to the model
>>object instead of EditPart?
Martijn van Steenbergen 写道:
> What exactly are you trying to achieve?
>
> Regards,
>
> Martijn.
>
> Wudong Liu wrote:
>
>>As i know, the GraphicalViewer's selection is a collection of EditPart.
>>I'm wondering if it's possible to change the selection to the model
>>object instead of EditPart?

I implements a ViewPart, which listen on some type of selection. it will
check the selection to see if it is a model object, if it is, then
display some information about the model object.
It's only accept type of model, but not EditPart. Of course, i can add
some logic to check if it's a EditPart, and retrieve it's model object.
I just want to know if there some simpler solution in GEF than changing
the existed code.
Previous Topic:how do I safely recreate the LightWeightSystem?
Next Topic:2 symmetrical connections.
Goto Forum:
  


Current Time: Thu Apr 25 18:03:53 GMT 2024

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

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

Back to the top