Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » shall I use GEF or just draw2D?
shall I use GEF or just draw2D? [message #244582] Sun, 27 July 2008 13:21 Go to next message
Eclipse UserFriend
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 #244585 is a reply to message #244582] Mon, 28 July 2008 05:34 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: lifesting.gmail.com

wizardIsHappy wrote:
> 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.
try GMF, http://www.eclipse.org/modeling/gmf/, which is more simple than
writing GEF App by hand if you are new to Graphical Editor.
Re: shall I use GEF or just draw2D? [message #244629 is a reply to message #244585] Mon, 28 July 2008 13:53 Go to previous messageGo to next message
Simon Bernard is currently offline Simon BernardFriend
Messages: 345
Registered: July 2009
Senior Member
hi,

Start with GMF without knowing in EMF or in GEF doesn't seem to be a
good idea ! You will be fastly lost.
For me, you should use GEF, all the more so your needs are rather
simple. You could see the shape example to begin.

David BY Chan a écrit :
> wizardIsHappy wrote:
>> 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.
> try GMF, http://www.eclipse.org/modeling/gmf/, which is more simple than
> writing GEF App by hand if you are new to Graphical Editor.
Re: shall I use GEF or just draw2D? [message #244645 is a reply to message #244629] Mon, 28 July 2008 14:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wizardishappy.gmail.com

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.
Re: shall I use GEF or just draw2D? [message #244654 is a reply to message #244645] Mon, 28 July 2008 16:24 Go to previous message
Simon Bernard is currently offline Simon BernardFriend
Messages: 345
Registered: July 2009
Senior Member
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.
Previous Topic:Combo Box
Next Topic:Embedded object in ZEST
Goto Forum:
  


Current Time: Tue Mar 19 11:27:47 GMT 2024

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

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

Back to the top