DirectEdit and GroupRequest [message #208806] |
Wed, 08 February 2006 22:36 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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 message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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 Go to previous message](theme/Solstice/images/up.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04297 seconds