about GraphicalViewer's Selection. [message #195509] |
Sun, 11 September 2005 05:48 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 #195574 is a reply to message #195524] |
Mon, 12 September 2005 04:02 |
Eclipse User |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.02651 seconds