Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » how to read GEF source code ?
how to read GEF source code ? [message #166783] Thu, 03 February 2005 02:21 Go to next message
Eclipse UserFriend
Originally posted by: jianminjin.msn.com

i think this is a question most newbies would like to know, it's very
frustrated that if u still have no idea how it works after having read
the source for days. there are docs tell u how many methods a class has,
and what they look like ,but u don't know what's the realation between
them, what happened behind the UI operation? for example, when u
drag the handle of a graph to change it's positon, viewer may hand it to
the controller by sending a request,then the controller convert it to
serveral command to manipualtor the data model? by this way , we can
support
redo/undo feature. but i don't understand how exactly it works, i only get
a very obscure conception about this, so i still haven't the ability to
realize by myself cause i don't know it in detail. i have many questions
like
this , would anyone who know this framework well be kindly to tell me how
to read the source code , how to master the GEF framework?

I'm hoping for an answer and any help would be greatly appreciated
Re: how to read GEF source code ? (Introductory GEF info) [message #166824 is a reply to message #166783] Thu, 03 February 2005 15:24 Go to previous messageGo to next message
Beth Tibbitts is currently offline Beth TibbittsFriend
Messages: 231
Registered: July 2009
Senior Member
I would highly recommend, in this order more or less:

0. Brush up on your understanding of MVC (Model-View-Controller)
although the following articles cover this as well.

1. Short article on Draw2D so you get an idea of the drawing mechanism
behind GEF: http://eclipse.org/articles/Article-GEF-Draw2d/GEF-Draw2d.ht ml
(I found that understanding this helped when reading subsequent articles)

2. "A Shape Diagram Editor" in Eclipse.org articles:
http://eclipse.org/articles/Article-GEF-diagram-editor/shape .html
(This is the newest article, and the example code probably does
the best abstraction of the GEF basics and model classes for a
simple GEF exemplary project.)

3. GEF overview on the GEF Wiki:
http://eclipsewiki.editme.com/GefDescription
(Also a good sample project, with less abstraction, so a tiny
bit harded to extend, but still excellent, and predates the above.)

4. GEF Tutorial on Developerworks by GEF author Randy Hudson:
http://www-106.ibm.com/developerworks/opensource/library/os- gef/

5. EMF-GEF Redbook - in-depth discussion (skip the EMF part if you want
to concentrate on GEF):
http://publib-b.boulder.ibm.com/Redbooks.nsf/RedbookAbstract s/sg246302.html?Open


6. Other articles on Eclipse.org
http://www.eclipse.org/gef/reference/articles.html?cvsroot=T ools_Project

....Beth Tibbitts
Re: how to read GEF source code ? (Introductory GEF info) [message #166970 is a reply to message #166824] Fri, 04 February 2005 01:17 Go to previous message
Eclipse UserFriend
Originally posted by: jianminjin.msn.com

thanks for ur patience to give me the helpful information. it helps me a
lot, thanks again :)


Beth Tibbitts wrote:


> I would highly recommend, in this order more or less:

> 0. Brush up on your understanding of MVC (Model-View-Controller)
> although the following articles cover this as well.

> 1. Short article on Draw2D so you get an idea of the drawing mechanism
> behind GEF: http://eclipse.org/articles/Article-GEF-Draw2d/GEF-Draw2d.ht ml
> (I found that understanding this helped when reading subsequent articles)

> 2. "A Shape Diagram Editor" in Eclipse.org articles:
> http://eclipse.org/articles/Article-GEF-diagram-editor/shape .html
> (This is the newest article, and the example code probably does
> the best abstraction of the GEF basics and model classes for a
> simple GEF exemplary project.)

> 3. GEF overview on the GEF Wiki:
> http://eclipsewiki.editme.com/GefDescription
> (Also a good sample project, with less abstraction, so a tiny
> bit harded to extend, but still excellent, and predates the above.)

> 4. GEF Tutorial on Developerworks by GEF author Randy Hudson:
> http://www-106.ibm.com/developerworks/opensource/library/os- gef/

> 5. EMF-GEF Redbook - in-depth discussion (skip the EMF part if you want
> to concentrate on GEF):
>
http://publib-b.boulder.ibm.com/Redbooks.nsf/RedbookAbstract s/sg246302.html?Open


> 6. Other articles on Eclipse.org
> http://www.eclipse.org/gef/reference/articles.html?cvsroot=T ools_Project

> ....Beth Tibbitts
Previous Topic:Change text and icon of logic's view menu?
Next Topic:SWT Font and AWT Font shows different size
Goto Forum:
  


Current Time: Thu Sep 26 13:31:41 GMT 2024

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

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

Back to the top