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 Baker is currently offline Martin BakerFriend
Messages: 31
Registered: July 2009
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: 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
org.eclipse.gmf.internal.bridge.wizards.pages.GraphDefLookup .findSuitableNode(
org.eclipse.gmf.internal.bridge.wizards.pages.MapDefFeeder.n odesFrom(
org.eclipse.gmf.internal.bridge.wizards.pages.MapDefFeeder.f eedDefaultMapping(
org.eclipse.gmf.internal.bridge.wizards.pages.WizardInput.fe edDefaultMapping(
org.eclipse.gmf.internal.bridge.wizards.GMFMapGuideModelWiza rd$5.update(
at java.util.Observable.notifyObservers(
org.eclipse.gmf.internal.common.ui.ElementSelectorExtension. fireModelElementChanged(

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

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 Factory;
but this file does not exist.

Is this a problem with the tutorial code or do I have to create this class

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.


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: Sat Mar 06 06:34:46 GMT 2021

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

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

Back to the top