Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Can't learn Eclipse GMF in 15 minutes
Can't learn Eclipse GMF in 15 minutes [message #219185] Wed, 18 February 2009 17:32 Go to next message
Martin Mising name is currently offline Martin Mising nameFriend
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
Re: Can't learn Eclipse GMF in 15 minutes [message #219481 is a reply to message #219185] Fri, 20 February 2009 11:27 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Martin,

Can you please file a request for it?

-----------------
Alex Shatalin
Previous Topic:Problems with Duplicate action
Next Topic:Node Constraint Problem
Goto Forum:
  


Current Time: Tue Apr 23 17:04:45 GMT 2024

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

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

Back to the top