more simple example please [message #10000] |
Thu, 13 June 2002 16:24 |
Eclipse User |
|
|
|
Originally posted by: hchan.yourcompany.com
HI,
I Am trying to make my fist GEF application for more than a week now and I
am having a lot of trouble with getting started with GEF.
The Draw2d examples in the distro are OK to start, but the logic diagram
editor is far too complicated to leran the GEF principles.
I propose to make a very simple GEF application, just like exist for the
Draw2d examples.
my suggestion: an editor to make simple drawings (just rectangles +
lines).
- no complicated model (e.g no use of inheritance for model classes and
editparts)
- Make several versions, starting with absolutely no functionality and
then make "increments" with always 1 extra functionality:
version 0: empty "baseline" plugin, which associates e.g. with a
".drawing" extension. clicking on a resource with this extension opens the
empty editor. no model can be loaded saved or created.
version 1: palette with only rectangle tool. actions possible: place
rectangle
version 2: add selection tool. new actions possible: move, resize
version 3: add connection tool. start with simplest possible connection
scenario (no bending or routing)
version 4: add "text" tool. new actions possible: select text tool, click
a rectangle, add text.
etc...
version 0 is the logic example with everything specific to drawing logic
diagrams thrown out. Should be easy.
I think someone with experience in GEF can write version 1-3 in a few
hours and post it e.g to the wiki site. Others could then add more and
more complex versions.
This could be really helpfull!!!!
many thanks,
Henri
|
|
|
Powered by
FUDForum. Page generated in 0.02632 seconds