Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Prevent Child Selection with policy?
Prevent Child Selection with policy? [message #97509] Mon, 06 October 2003 20:52 Go to next message
Eclipse UserFriend
Originally posted by: ThisisFake.Fakeness.xyz

I have a component that contains other parts. I prevent its children from
being selected if I drag a box around this compomnent, or a box that just
contains its children by returning false to isSelectable if this
components parents parent is not a RootEditPart.

Is this the architecturally correct way to do this? Is their a selection
policy or anything for the container? Anyway I can use a policy for this?



Carl
Re: Prevent Child Selection with policy? [message #97549 is a reply to message #97509] Tue, 07 October 2003 01:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

Is this related to "grouping" above?

"CL [dnoyeB] Gilbert" <ThisisFake@Fakeness.xyz> wrote in message
news:pan.2003.10.06.20.52.22.823555@Fakeness.xyz...
> I have a component that contains other parts. I prevent its children from
> being selected if I drag a box around this compomnent, or a box that just
> contains its children by returning false to isSelectable if this
> components parents parent is not a RootEditPart.
>
> Is this the architecturally correct way to do this? Is their a selection
> policy or anything for the container? Anyway I can use a policy for this?
>
>
>
> Carl
Re: Prevent Child Selection with policy? [message #97618 is a reply to message #97549] Tue, 07 October 2003 02:23 Go to previous message
Eclipse UserFriend
Originally posted by: ThisisFake.Fakeness.xyz

On Mon, 06 Oct 2003 21:30:42 -0400, Randy Hudson wrote:

> Is this related to "grouping" above?
>

Well it wasn't. This was my first method. where you basically have a
component and when you duble click it, you can edit its contents. But I
have changed to a more dynamic method of giving the user a blank slate and
letting them make the component from scratch. Then group it as a form of
'making' the component. Then double clicking will open a window that will
temporarily explode the component for editing.

So the grouping technique is a replacement of this one. But I learned a
lot about the arch with this one.


CL



> "CL [dnoyeB] Gilbert" <ThisisFake@Fakeness.xyz> wrote in message
> news:pan.2003.10.06.20.52.22.823555@Fakeness.xyz...
>> I have a component that contains other parts. I prevent its children from
>> being selected if I drag a box around this compomnent, or a box that just
>> contains its children by returning false to isSelectable if this
>> components parents parent is not a RootEditPart.
>>
>> Is this the architecturally correct way to do this? Is their a selection
>> policy or anything for the container? Anyway I can use a policy for this?
>>
>>
>>
>> Carl
Previous Topic:Received wrong transfer of data
Next Topic:is it impossible to create different type of connection?
Goto Forum:
  


Current Time: Fri Dec 27 04:14:23 GMT 2024

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

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

Back to the top