Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Do I need EditPolicy.LAYOUT_ROLE just to select a child?
Do I need EditPolicy.LAYOUT_ROLE just to select a child? [message #184761] Thu, 16 June 2005 13:06 Go to next message
Steve Jones is currently offline Steve JonesFriend
Messages: 95
Registered: July 2009
Member
Hi,

I have child editparts that are laid out using ToolbarLayout.

I want to be able to select a child, provide some visual feedback, and allow
the user to delete it.

No re-size, no move, no add, just select and delete.

What edit policies to I need to implement in the parent and child parts to
get this functionality?

Cheers, Steve.
Re: Do I need EditPolicy.LAYOUT_ROLE just to select a child? [message #185040 is a reply to message #184761] Wed, 22 June 2005 00:39 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

You can put your own version of a selection editpolicy on the editpart using
whatever key you want. The PRIMARY_DRAG_ROLE is just a convention used so
that swapping layouts guarantees that the same type of policy on the child
also gets swapped.

"Steve Jones" <steve@istech.demon.co.uk> wrote in message
news:d8rtgk$o3r$1@news.eclipse.org...
> Hi,
>
> I have child editparts that are laid out using ToolbarLayout.
>
> I want to be able to select a child, provide some visual feedback, and
> allow
> the user to delete it.
>
> No re-size, no move, no add, just select and delete.
>
> What edit policies to I need to implement in the parent and child parts to
> get this functionality?
>
> Cheers, Steve.
>
>
Previous Topic:Cut/Copy/Paste problem within the GEF canvas
Next Topic:Draw2d Figures with transparency
Goto Forum:
  


Current Time: Tue Dec 10 14:28:07 GMT 2024

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

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

Back to the top