Friday, October 2, 2009

TutoGEF Project

Here is the promised zip containing the TutoGEF Project as described in the GEF Tutorial Document.

In order to use it:
  1. open Eclipse
  2. choose File > Import
  3. in the Import Wizard choose General > Existing Projects into Workspace
  4. use Select Archive file and browse for TutoGEF.zip
  5. Click finish and you are set to go!


    3 comments:

    Anonymous said...

    I get Exception while trying this example at runtime.
    !SESSION 2012-02-10 20:21:29.883 -----------------------------------------------
    eclipse.buildId=unknown
    java.version=1.6.0_30
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    Framework arguments: -application TutoGEF.application
    Command-line arguments: -application TutoGEF.application -data D:\Sumant\MT_0410\eclipse-modeling-helios-SR2-incubation-win32\eclipse\workspace/../runtime-TutoGEF.application -dev file:D:/Sumant/MT_0410/eclipse-modeling-helios-SR2-incubation-win32/eclipse/workspace/.metadata/.plugins/org.eclipse.pde.core/TutoGEF.application/dev.properties -os win32 -ws win32 -arch x86 -consoleLog

    !ENTRY org.eclipse.ui.workbench 4 0 2012-02-10 20:21:37.430
    !MESSAGE java.lang.Object cannot be cast to tutogef.model.Node
    !STACK 0
    java.lang.ClassCastException: java.lang.Object cannot be cast to tutogef.model.Node
    at tutogef.model.command.DeleteCommand.setParentModel(DeleteCommand.java:31)
    at tutogef.editpolicy.AppDeletePolicy.createDeleteCommand(AppDeletePolicy.java:24)
    at org.eclipse.gef.editpolicies.ComponentEditPolicy.getDeleteCommand(ComponentEditPolicy.java:76)
    at org.eclipse.gef.editpolicies.ComponentEditPolicy.getCommand(ComponentEditPolicy.java:63)
    at org.eclipse.gef.editparts.AbstractEditPart.getCommand(AbstractEditPart.java:501)
    at org.eclipse.gef.ui.actions.DeleteAction.createDeleteCommand(DeleteAction.java:104)
    at org.eclipse.gef.ui.actions.DeleteAction.calculateEnabled(DeleteAction.java:78)
    at org.eclipse.gef.ui.actions.WorkbenchPartAction.refresh(WorkbenchPartAction.java:131)
    at org.eclipse.gef.ui.actions.SelectionAction.handleSelectionChanged(SelectionAction.java:89)
    at org.eclipse.gef.ui.actions.SelectionAction.setSelection(SelectionAction.java:101)
    at org.eclipse.gef.ui.actions.SelectionAction.update(SelectionAction.java:124)

    Unknown said...

    First off, great tutorial...I've struggled with many of the GEF examples and tutorials. This one really did a good job of stepping into each topic in a simple manner.

    I did run into an issue with the Miniature example, Part 7. I put the code in as explained in the PDF, but I can't seem to get the Miniature to display.

    tia,

    adym

    Unknown said...

    Hi,

    Working thru Part 9, Custom command...Everything works except the redraw at the end. I get no errors in the console either. The Wizard captures the new name and it DOES get set into the new Node/Figure/EditPart. But the Text label doesn't change.

    If I then do a Node Layout change, by moving the recently renamed Node, I then see the new name...

    Any ideas?


    adym