Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » [Draw2d] Inline Editing of Labels
[Draw2d] Inline Editing of Labels [message #12739] Tue, 09 July 2002 15:43 Go to next message
Yoav Rubin is currently offline Yoav Rubin
Messages: 93
Registered: July 2009
Member
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
Re: [Draw2d] Inline Editing of Labels [message #12778 is a reply to message #12739] Tue, 09 July 2002 16:54 Go to previous messageGo to next message
Guy Slade is currently offline Guy Slade
Messages: 22
Registered: July 2009
Junior Member
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
Re: [Draw2d] Inline Editing of Labels [message #12838 is a reply to message #12778] Tue, 09 July 2002 18:41 Go to previous message
Eclipse User
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
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
>
>
Previous Topic:[JFace] weird Exception after Closing Wizard Dialog
Next Topic:GEF in CVS?
Goto Forum:
  


Current Time: Wed Oct 22 06:45:59 GMT 2014

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

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