Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » old thread: direct edit tutorial/examples? (Andreas Holtz recommends good incremental GEF tutorial)
old thread: direct edit tutorial/examples? (Andreas Holtz recommends good incremental GEF tutorial) [message #184745] Thu, 16 June 2005 05:22
Eclipse UserFriend
Originally posted by: andrew.fleet.iona.com

As a newbie to GEF I've struggeld to find a good incremental tutorial that
actually works!. While
reading past posts on a technique I though I needed to use I came across the
"direct edit tutorial/examples?"
thread. Andreas suggested a site which to the dismay of the poster was in
Japenese!. However I would
strongly suggest newbies work through these examples;

http://www13.plala.or.jp/observe/GEF/GEF1.zip

through

http://www13.plala.or.jp/observe/GEF/GEF11.zip

The code has Japanese comments, however the incremental nature of the
tutorial I think will be a great
help to those of us who are feeling a bit overwhelmed!. Below I outline the
increments, as I see them. I
think the changes are so small us newbies can figure out the need for the
code changes without the
comments. Note, all examples are based on the MVC model :)

Example1: Static editor, displaying "Hello World" in a viewer.

Example 2: Replace the string with 3 static boxes

Example 3: Allow boxes to be moved with undo/redo (getting exciting!)

Example 4: Addition of a palette

Example 5: Allow Direct Edit (Oh so that's what it is:)) [ hint: try
clicking _slowly_ on a 'hello world' box]

Example 6: Add 2 connection line types to the palette

Example7: Add a properties view (Window->Show View->Properties)

Example8: Moving a marquee (multi box selection)

Example 9: Addition of File Move on Palette (no idea yet what this does)

Example 10: Add Zoom to the toolbar

Example 11: Add a context viewer that includes a mini view of the entire
edit page with scrolling (very cool)


FYI for each example I added the following imports to plugin.xml (they are
probably a superset of what's required)

<import plugin="org.eclipse.core.runtime.compatibility"/>

<import plugin="org.eclipse.ui.ide"/>

<import plugin="org.eclipse.ui.views"/>

<import plugin="org.eclipse.jface.text"/>

<import plugin="org.eclipse.ui.workbench.texteditor"/>

<import plugin="org.eclipse.ui.editors"/>



Regards,



Andy
Previous Topic:Opening an Editor programmatically...
Next Topic:Drag & Drop Feedback
Goto Forum:
  


Current Time: Mon Dec 02 21:15:02 GMT 2024

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

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

Back to the top