Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » GEF Architecture clarification
GEF Architecture clarification [message #172062] Wed, 16 March 2005 05:33 Go to next message
Eclipse UserFriend
Originally posted by: gunjan_sir.yahoo.com

hi!
im very new the world of GEF, and i'm presently battling to fully
understand the design of the GEF.
the issuse that im now facing is very simple....
all i have to do is drag and drop a Person(model) on to the editor.
this is my conclusion of the steps needed to implement
1)write the model(PersonModel)
2)figure...where we do drawing of the figure(PersonFigure)
3)edit part ...we cal createFigure and refreshVisuals()(PersonEditPart)
4)editpartfactory
5)command... for actually executing the request

i want get the advice and nod of the expert whether my understanding is
correct or it needs correction.

best regards
vedgunjan
Re: GEF Architecture clarification [message #172076 is a reply to message #172062] Wed, 16 March 2005 05:44 Go to previous messageGo to next message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
Right, and then you just need to tie them all together. That is the
intended parent EditPart should be returning the CreateCommand from its
LayoutEditPolicy, the new EditPart should listen to the model, etc. I am
assuming you already have the palette item for the Person.

Just try it out, and post back here if you run into problems.

"Ved Gunjan" <gunjan_sir@yahoo.com> wrote in message
news:d18gfe$3jr$1@www.eclipse.org...
>
> hi!
> im very new the world of GEF, and i'm presently battling to fully
> understand the design of the GEF.
> the issuse that im now facing is very simple....
> all i have to do is drag and drop a Person(model) on to the editor.
> this is my conclusion of the steps needed to implement
> 1)write the model(PersonModel)
> 2)figure...where we do drawing of the figure(PersonFigure)
> 3)edit part ...we cal createFigure and refreshVisuals()(PersonEditPart)
> 4)editpartfactory
> 5)command... for actually executing the request
>
> i want get the advice and nod of the expert whether my understanding is
> correct or it needs correction.
>
> best regards
> vedgunjan
>
>
Re: GEF Architecture clarification [message #172469 is a reply to message #172062] Fri, 18 March 2005 15:06 Go to previous message
Eclipse UserFriend
Originally posted by: heinecke.blue-cable.de

Ved Gunjan wrote:

>
hi,

you are totally right. These are important steps. Have you read the
documentation at:
http://www.eclipse.org/gef/reference/articles.html?cvsroot=T ools_Project

There you can find a lot of documentation how get started with GEF. As I
remember there is also an article about drag 'n drop. Read it, if there are
still questions than post to this newsgroup.

many regards

Andreas

> hi!
> im very new the world of GEF, and i'm presently battling to fully
> understand the design of the GEF.
> the issuse that im now facing is very simple....
> all i have to do is drag and drop a Person(model) on to the editor.
> this is my conclusion of the steps needed to implement
> 1)write the model(PersonModel)
> 2)figure...where we do drawing of the figure(PersonFigure)
> 3)edit part ...we cal createFigure and refreshVisuals()(PersonEditPart)
> 4)editpartfactory
> 5)command... for actually executing the request
>
> i want get the advice and nod of the expert whether my understanding is
> correct or it needs correction.
>
> best regards
> vedgunjan
Previous Topic:How the 'flow' example of GEF 3.0.1 implement the function that auto-range the node's position
Next Topic:outline view
Goto Forum:
  


Current Time: Thu Apr 25 21:32:57 GMT 2024

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

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

Back to the top