shall I use GEF or just draw2D? [message #244582] |
Sun, 27 July 2008 09:21  |
Eclipse User |
|
|
|
Originally posted by: wizardishappy.gmail.com
I'm new to draw2D and GEF.
I want to draw several cycles and use cursor to draw lines to connect them. The user can input some labels to every line.
I wonder if I can just use draw2D or I have to use GEF.
TIA.
|
|
|
|
|
|
Re: shall I use GEF or just draw2D? [message #244654 is a reply to message #244645] |
Mon, 28 July 2008 12:24  |
Eclipse User |
|
|
|
With GEF you have some element to help you to implement this kind of
feature.
see LogicLabelEditPart in the logic example (performDirectEdit,
LabelDirectEditPolicy)
Perhaps, you could do something like that without using GEF, but it's a
bit pity.
wizardIsHappy a écrit :
> In fact, only one thing I cannot solve with Draw2D.
> That is how can I edit a Label directly in a canvas?
> (in my case, the user could edit the label of the connection).
> One solution I figured out is to popup a dialog to let the user input something. But we all know that if there is a way to let the user directly edit the label in the label on the connection could be better. (The similar situation in JS of web application is to call show a Text component replacing the Label on the mouse click event, but I cannot find the similar component in draw2D. :( )
> If any friend can give me a solution without GEF, I will be very happy. But if you point out GEF could be a better way to solve this, I will thank you too and to learn that..
> TIA.
|
|
|
Powered by
FUDForum. Page generated in 0.04193 seconds