In order to use it:
- open Eclipse
- choose File > Import
- in the Import Wizard choose General > Existing Projects into Workspace
- use Select Archive file and browse for TutoGEF.zip
- Click finish and you are set to go!
GEF, PropertySheets, Common Navigator etc ...
3 comments:
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)
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
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
Post a Comment