Hi
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.
any ideas?
thanks
yoav

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 the
example. The class DirectEditManager is a starting point for you.

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
extensible way.

"Guy Slade" <gslade@us.ibm.com> wrote in message
news:agf2sf$vl6$1@rogue.oti.com...
> 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
the
> example. The class DirectEditManager is a starting point for you.
>
> Guy
>
>