|[Draw2d] Inline Editing of Labels [message #12739]
||Tue, 09 July 2002 15:43
| Yoav Rubin
Registered: July 2009
i have a label which is part of the figure of my editpart that shows
text(the name of the part). i would like my users to be able to
double-click on the label and then they would be able to edit the text in
the label. I couldn't create an SWT control above the label using shell.
|Re: [Draw2d] Inline Editing of Labels [message #12838 is a reply to message #12778]
||Tue, 09 July 2002 18:41
Originally posted by: none.ibm.com|
Guy's correct. On double-click, the default SelectEditPartTracker will send
a "performRequest(Request)" message to the EditPart, with the type being
RequestConstants.REQ_DIRECT_EDIT. Note that this is sent to all edit parts,
and that they can ignore the request if they wish.
performRequest(..) is new API introduced to ask EditParts to do things in an
"Guy Slade" <firstname.lastname@example.org> wrote in message
> In the logic sample there is an example of this. Drop a label and if you
> double click on it you can directly edit the label text. Take a look at
> example. The class DirectEditManager is a starting point for you.
Powered by FUDForum
. Page generated in 0.21625 seconds