Can't learn Eclipse GMF in 15 minutes [message #219185] |
Wed, 18 February 2009 17:32 |
Martin Mising name Messages: 32 Registered: July 2009 |
Member |
|
|
I am a newbie at using GMF to generate GEF applications, despite searching
the web, I am stuck on this problem.
I am trying to learn from the tutorial:
'Learn Eclipse GMF in 15 minutes' here:
http://www.ibm.com/developerworks/opensource/library/os-ecl- gmf/
I finally managed to generate some code from the tutorial download but the
generated code seems to be missing a file, I will explain what I did:
When I pressed 'combine' in the GMF Dashboard to generate the gmfmap file
I got:
!ENTRY org.eclipse.ui 4 0 2009-02-18 16:40:23.441
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.NullPointerException
at
org.eclipse.gmf.internal.bridge.wizards.pages.GraphDefLookup .findSuitableNode(GraphDefLookup.java:36)
at
org.eclipse.gmf.internal.bridge.wizards.pages.MapDefFeeder.n odesFrom(MapDefFeeder.java:123)
at
org.eclipse.gmf.internal.bridge.wizards.pages.MapDefFeeder.f eedDefaultMapping(MapDefFeeder.java:78)
at
org.eclipse.gmf.internal.bridge.wizards.pages.WizardInput.fe edDefaultMapping(WizardInput.java:121)
at
org.eclipse.gmf.internal.bridge.wizards.GMFMapGuideModelWiza rd$5.update(GMFMapGuideModelWizard.java:133)
at java.util.Observable.notifyObservers(Observable.java:159)
at
org.eclipse.gmf.internal.common.ui.ElementSelectorExtension. fireModelElementChanged(ElementSelectorExtension.java:61)
<snip>
So instead I used the gmfmap file downloaded from the tutorial site.
In the GMF Dashboard the "Transform" link did not do anything, so instead,
I select the gmfmap file, right click -> Create Generator Model
(I did not select use 'IMap mode' or 'enhanced GMF runtime' but I did
select 'generate RCP'
I get:
!ENTRY org.eclipse.gmf.bridge 2 0 2009-02-18 15:55:30.084
!MESSAGE There's default tool specified for palette, but can't find gmfgen
counterpart
I then right click on gmfgen file -> 'generate diagram code'
(I think I may have had to 'Migrate to GMF 2.1' at some stage to stop it
generating other errors but can't be sure)
When I try the build the generated code the code has errors as it tries to
import com.ibm.model.shapes.model.provider.ModelItemProviderAdapter Factory;
but this file does not exist.
Is this a problem with the tutorial code or do I have to create this class
myself?
I am using Eclipse SDK Version: 3.4.1 Build id: M20080911-1700 on Linux_64
with all the EMF, GMF, GEF and so on plugins available.
I would appreciate any ideas to get the example code working and also any
other tutorials that I could follow to help me get started.
Thanks,
Martin
|
|
|
|
Powered by
FUDForum. Page generated in 0.03576 seconds