Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » .gmfmap syntax changed?
.gmfmap syntax changed? [message #74103] Fri, 03 November 2006 08:47 Go to next message
Eclipse UserFriend
Hi,
since I had a couple of issues with 2.0M2 I thought: let's give the
newest nightly build a try!

But when I attempt to open the .gmfmap file generated by the previous
build the gmfmap editor fails and reports multiple errors that all reads
something like: "FeatureNotFoundException: Feature 'features' not
found. ..."

The error markers are all in lines that read
<features href="leonardo2.ecore#//<sometype>/name"/>

What has changed here? Can one "massage" those files with a text editor
somehow so they will be accepted by the new version?

Michael
Re: .gmfmap syntax changed? [message #74825 is a reply to message #74103] Mon, 06 November 2006 13:17 Go to previous messageGo to next message
Eclipse UserFriend
Hello Michael,

> But when I attempt to open the .gmfmap file generated by the previous
> build the gmfmap editor fails and reports multiple errors that all
> reads something like: "FeatureNotFoundException: Feature 'features'
> not found. ..."
Looks like the reason is in recent changes of gmfmap meta-model. To continue
using old .gmfmap file you have to either execute “Migrate to GMF 2.0” popup
menu action for existing .gmfmap (check xmlns:gmfmap="http://www.eclipse.org/gmf/2005/mappings"
specified) or add xsi:type="gmfmap:FeatureLabelMapping" attribute for each
labelMapping:

<labelMappings xsi:type="gmfmap:FeatureLabelMapping" …

-----------------
Alex Shatalin
Re: .gmfmap syntax changed? [message #75218 is a reply to message #74825] Tue, 07 November 2006 07:58 Go to previous message
Eclipse UserFriend
Alex,

thanks, this worked - i.e. after the proposed treatment the nightly
build was able to read the .gmfmap file and all .gmf* files validated
fine. Alas, executing the model generator then failed with:

---------------------------------
An internal error occurred during: "Create generator model...".

java.lang.StringIndexOutOfBoundsException
at java.lang.String.charAt(String.java:415)
at
org.eclipse.gmf.internal.xpand.BufferOutput.write(BufferOutp ut.java:65)
at
org.eclipse.gmf.internal.xpand.ast.TextStatement.evaluateInt ernal(TextStatement.java:50)
at
org.eclipse.gmf.internal.xpand.ast.Statement.evaluate(Statem ent.java:27)
at
org.eclipse.gmf.internal.xpand.ast.AbstractDefinition.evalua te(AbstractDefinition.java:94)
at
org.eclipse.gmf.internal.xpand.ast.ExpandStatement.invokeDef inition(ExpandStatement.java:190)
at
org.eclipse.gmf.internal.xpand.ast.ExpandStatement.evaluateI nternal(ExpandStatement.java:161)
at
org.eclipse.gmf.internal.xpand.ast.Statement.evaluate(Statem ent.java:27)
at
org.eclipse.gmf.internal.xpand.ast.AbstractDefinition.evalua te(AbstractDefinition.java:94)
at
org.eclipse.gmf.internal.xpand.XpandFacade.evaluate(XpandFac ade.java:60)
at
org.eclipse.gmf.graphdef.codegen.FigureGenerator.go(FigureGe nerator.java:88)
at
org.eclipse.gmf.internal.bridge.genmodel.InnerClassViewmapPr oducer.createFigureViewmap(InnerClassViewmapProducer.java:12 3)
at
org.eclipse.gmf.internal.bridge.genmodel.InnerClassViewmapPr oducer.createViewmap(InnerClassViewmapProducer.java:138)
at
org.eclipse.gmf.internal.bridge.genmodel.InnerClassViewmapPr oducer.create(InnerClassViewmapProducer.java:73)
at
org.eclipse.gmf.internal.bridge.genmodel.DiagramGenModelTran sformer.process(DiagramGenModelTransformer.java:281)
at
org.eclipse.gmf.internal.bridge.genmodel.MappingTransformer. transform(MappingTransformer.java:32)
at
org.eclipse.gmf.internal.codegen.popup.actions.TransformToGe nModelOperation$2.process(TransformToGenModelOperation.java: 339)
at
org.eclipse.gmf.internal.codegen.popup.actions.TransformToGe nModelOperation$1.run(TransformToGenModelOperation.java:255)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
---------------------------------

:-(

But I guess, since that's not any "official" version but only a nightly
build (from 20061103) I guess there's not much sense in submitting a
bugzilla for this, is there?

Michael


"Alex Shatalin" <vano@borland.com> wrote in message
news:cd695fb3128d88c8cfef44cbc0bf@news.eclipse.org...
> Hello Michael,
>
>> But when I attempt to open the .gmfmap file generated by the previous
>> build the gmfmap editor fails and reports multiple errors that all
>> reads something like: "FeatureNotFoundException: Feature 'features'
>> not found. ..."
> Looks like the reason is in recent changes of gmfmap meta-model. To
> continue using old .gmfmap file you have to either execute “Migrate to
> GMF 2.0” popup menu action for existing .gmfmap (check
> xmlns:gmfmap="http://www.eclipse.org/gmf/2005/mappings" specified) or
> add xsi:type="gmfmap:FeatureLabelMapping" attribute for each
> labelMapping:
> <labelMappings xsi:type="gmfmap:FeatureLabelMapping" …
>
> -----------------
> Alex Shatalin
>
>
Previous Topic:How to tie connections label closer to the connection?
Next Topic:user-changeable properties for diagram elements?
Goto Forum:
  


Current Time: Thu Jul 24 17:58:07 EDT 2025

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

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

Back to the top