Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » DirectEdit and GroupRequest
DirectEdit and GroupRequest [message #208806] Wed, 08 February 2006 22:36 Go to next message
Eclipse UserFriend
Originally posted by: evaldas.taroza.stud-inf.unibz.it

Hi,
For the role DIRECT_EDIT_ROLE I installed DirectEditPolicy. However, I
always get GroupRequest in getComand() of the policy. This might be
because my EditPart contains several figures, not only a label. However,
I need to directly edit the label in that 'group'. How do I ensure that
the label is selected for editing, and the DirectEditRequest is created?

Thanks.
Zeppe
Re: DirectEdit and GroupRequest [message #208997 is a reply to message #208806] Fri, 10 February 2006 10:49 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ingo.koch[nospam].sap.com

Hi,

1. catch the direct edit request in the editpart:
public void performRequest(Request request)
{
if (request.getType() == RequestConstants.REQ_DIRECT_EDIT)
performDirectEdit(); //show direct edit manager, which brings up
the input-field
}

2. process the editing when user is finished in your DirectEditPolicy by
implementing

protected Command getDirectEditCommand(DirectEditRequest edit)#

Regards, Ingo






"Zeppe" <evaldas.taroza@stud-inf.unibz.it> wrote in message
news:dsdrpd$1lc$1@utils.eclipse.org...
> Hi,
> For the role DIRECT_EDIT_ROLE I installed DirectEditPolicy. However, I
> always get GroupRequest in getComand() of the policy. This might be
> because my EditPart contains several figures, not only a label. However,
> I need to directly edit the label in that 'group'. How do I ensure that
> the label is selected for editing, and the DirectEditRequest is created?
>
> Thanks.
> Zeppe
Re: DirectEdit and GroupRequest [message #209013 is a reply to message #208997] Fri, 10 February 2006 12:13 Go to previous message
Eclipse UserFriend
Originally posted by: evaldas.taroza.stud-inf.unibz.it

Thanks it works.

Zeppe

Ingo Koch wrote:
> Hi,
>
> 1. catch the direct edit request in the editpart:
> public void performRequest(Request request)
> {
> if (request.getType() == RequestConstants.REQ_DIRECT_EDIT)
> performDirectEdit(); //show direct edit manager, which brings up
> the input-field
> }
>
> 2. process the editing when user is finished in your DirectEditPolicy by
> implementing
>
> protected Command getDirectEditCommand(DirectEditRequest edit)#
>
> Regards, Ingo
>
>
>
>
>
>
> "Zeppe" <evaldas.taroza@stud-inf.unibz.it> wrote in message
> news:dsdrpd$1lc$1@utils.eclipse.org...
>
>>Hi,
>>For the role DIRECT_EDIT_ROLE I installed DirectEditPolicy. However, I
>>always get GroupRequest in getComand() of the policy. This might be
>>because my EditPart contains several figures, not only a label. However,
>>I need to directly edit the label in that 'group'. How do I ensure that
>>the label is selected for editing, and the DirectEditRequest is created?
>>
>>Thanks.
>>Zeppe
>
>
>
Previous Topic:[ANN] Generic Image Export Plug In
Next Topic:Composite edit parts and figure hierarchy
Goto Forum:
  


Current Time: Thu Apr 25 09:16:00 GMT 2024

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

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

Back to the top