Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Selecting a Node that has model children
Selecting a Node that has model children [message #192304] Wed, 17 August 2005 22:16 Go to next message
Felix L J Mayer is currently offline Felix L J MayerFriend
Messages: 202
Registered: July 2009
Senior Member
I have a stupid question about the EDiagram example: how do you make that
when I click anywhere in a node (not just the header) that the entire node
is selected? I have an application that does basically the same thing, but
when I click on the body of my node, which is represented by different
EditParts, the whole node is not selected. I looked through all the
EditPolicies in the EDiagram example and nothing struck me as being the
thing that make the difference.
Re: Selecting a Node that has model children [message #192335 is a reply to message #192304] Thu, 18 August 2005 04:07 Go to previous messageGo to next message
Vineet Sinha is currently offline Vineet SinhaFriend
Messages: 31
Registered: July 2009
Member
Felix L J Mayer wrote:
> I have a stupid question about the EDiagram example: how do you make that
> when I click anywhere in a node (not just the header) that the entire node
> is selected? I have an application that does basically the same thing, but
> when I click on the body of my node, which is represented by different
> EditParts, the whole node is not selected. I looked through all the
> EditPolicies in the EDiagram example and nothing struck me as being the
> thing that make the difference.
>
>

See AbstractEditPart.isSelectable (and methods that override it).
Re: Selecting a Node that has model children [message #192370 is a reply to message #192335] Thu, 18 August 2005 15:16 Go to previous messageGo to next message
Felix L J Mayer is currently offline Felix L J MayerFriend
Messages: 202
Registered: July 2009
Senior Member
"Vineet Sinha" <vineet@csail.mit.edu> wrote in message
news:de11i5$a2$1@news.eclipse.org...
> Felix L J Mayer wrote:
>> I have a stupid question about the EDiagram example: how do you make that
>> when I click anywhere in a node (not just the header) that the entire
>> node is selected? I have an application that does basically the same
>> thing, but when I click on the body of my node, which is represented by
>> different EditParts, the whole node is not selected. I looked through all
>> the EditPolicies in the EDiagram example and nothing struck me as being
>> the thing that make the difference.
>
> See AbstractEditPart.isSelectable (and methods that override it).

I forgot to mention that I have already used that method like in the example
;)
The strange thing is that my EditParts are basically the same as in the
example:
everyone of them uses the default implementation of
AbstractEditPart.isSelectable(), only the CompartmentEditPart returns false.
Re: Selecting a Node that has model children [message #192384 is a reply to message #192370] Thu, 18 August 2005 15:47 Go to previous message
Felix L J Mayer is currently offline Felix L J MayerFriend
Messages: 202
Registered: July 2009
Senior Member
Never mind, I figured it out...

"Felix L J Mayer" <felix.mayer@objectaid.com> wrote in message
news:de28g1$h76$1@news.eclipse.org...
> "Vineet Sinha" <vineet@csail.mit.edu> wrote in message
> news:de11i5$a2$1@news.eclipse.org...
>> Felix L J Mayer wrote:
>>> I have a stupid question about the EDiagram example: how do you make
>>> that when I click anywhere in a node (not just the header) that the
>>> entire node is selected? I have an application that does basically the
>>> same thing, but when I click on the body of my node, which is
>>> represented by different EditParts, the whole node is not selected. I
>>> looked through all the EditPolicies in the EDiagram example and nothing
>>> struck me as being the thing that make the difference.
>>
>> See AbstractEditPart.isSelectable (and methods that override it).
>
> I forgot to mention that I have already used that method like in the
> example ;)
> The strange thing is that my EditParts are basically the same as in the
> example:
> everyone of them uses the default implementation of
> AbstractEditPart.isSelectable(), only the CompartmentEditPart returns
> false.
>
Previous Topic:RectangleFigure does not behave as expected
Next Topic:TextPropertyDescriptor leading to NotSerializable error on doSave()
Goto Forum:
  


Current Time: Wed Jan 22 12:32:29 GMT 2025

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

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

Back to the top