Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Diagram Runtime Class must be a notation::Diagram or sub-class
Diagram Runtime Class must be a notation::Diagram or sub-class [message #235279] Sun, 05 July 2009 15:45 Go to next message
Bill HingeFriend
Messages: 156
Registered: July 2009
Senior Member
Hi

I developed my DSL originally using the Amalgam toolkit, latest version.
However, when I import my projects from Amalgam to Galileo and run the
genmodel I get an error straight away

Source generator model is not completely ok, would you like to proceed?
Reason
Diagnosos of Gen Editor ...


In the details there is a lot of validation fails unexpectedly for 'Gen
Diagram ..'
Diagram Runtime Class must be a notation::Diagram or sub-class

for every node & container.

This works in Amalgam, if I generate plugins in Amalgam and load them in
Galileo they work. I developed my UI on Galileo since I used m2t Xpand
and MWE and I couldn't install m2t xpand on amalgam. If I run the
imported projects in the Galileo runtime, no problem. Only regenerating
causes a problem. All validations are OK.

From my use of mwe & xpand I recognise notation::Diagram as something
from notation.ecore in the GMF runtime. Any idea whats wrong - config?

regards
Steve
Re: Diagram Runtime Class must be a notation::Diagram or sub-class [message #235357 is a reply to message #235279] Mon, 06 July 2009 09:51 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Bill,

Looks like some meta-model(s) was referenced using incorrect URIs (platform:/plugin
instead of NSURI).

-----------------
Alex Shatalin
Re: Diagram Runtime Class must be a notation::Diagram or sub-class [message #235387 is a reply to message #235357] Mon, 06 July 2009 10:20 Go to previous messageGo to next message
Bill HingeFriend
Messages: 156
Registered: July 2009
Senior Member
Thanks Alex

I did notice that the bottom of the genmodel when opened in its editor
has a ref to notation.ecore. Any idea where I might start to look to
resolve this?

regards
Steve

Alex Shatalin wrote:
> Hello Bill,
>
> Looks like some meta-model(s) was referenced using incorrect URIs
> (platform:/plugin instead of NSURI).
>
> -----------------
> Alex Shatalin
>
>
Re: Diagram Runtime Class must be a notation::Diagram or sub-class [message #235475 is a reply to message #235387] Tue, 07 July 2009 10:05 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Bill,

> I did notice that the bottom of the genmodel when opened in its editor
> has a ref to notation.ecore. Any idea where I might start to look to
Was it referenced as platform:/plugin? Or platform:/resource?

> resolve this?
in corresponding .gmfgen model - you have to check references to a notation.ecore
elements there.

-----------------
Alex Shatalin
Re: Diagram Runtime Class must be a notation::Diagram or sub-class [message #235685 is a reply to message #235475] Wed, 08 July 2009 20:04 Go to previous messageGo to next message
Bill HingeFriend
Messages: 156
Registered: July 2009
Senior Member
Hi

I found out the problem here.

symptoms:
If I deleted the genmodel and created a new one, then deleted my gmfgen
and generated a new one. Then if I started to generate my diag code I
got this error.

Solution:

I found I had org.eclipse.core.runtime in my dsl model project.
If I deleted this and regenerated, everything worked!

I had been playing around getting the xpand code editor working in the
past few weeks and it must have got in there then?

Now working again ;-) Fortunately I had an instances of working projects
and apple time machine/capsule


regards
Steve

Alex Shatalin wrote:
> Hello Bill,
>
>> I did notice that the bottom of the genmodel when opened in its editor
>> has a ref to notation.ecore. Any idea where I might start to look to
> Was it referenced as platform:/plugin? Or platform:/resource?
>
>> resolve this?
> in corresponding .gmfgen model - you have to check references to a
> notation.ecore elements there.
>
> -----------------
> Alex Shatalin
>
>
Re: Diagram Runtime Class must be a notation::Diagram or sub-class [message #235788 is a reply to message #235475] Thu, 09 July 2009 12:51 Go to previous messageGo to next message
Bill HingeFriend
Messages: 156
Registered: July 2009
Senior Member
Hmm

I'm still getting this..., thought I fixed it.

I went back and started all the way from ecore and regenerated
everything


In the the gmfgen file which is freshly generated

href=" ../../../plugin/org.eclipse.gmf.runtime.notation/model/notat ion.genmodel#//notation/Node "/>


note NOT platform:/plugin

regards
Steve







Alex Shatalin wrote:
> Hello Bill,
>
>> I did notice that the bottom of the genmodel when opened in its editor
>> has a ref to notation.ecore. Any idea where I might start to look to
> Was it referenced as platform:/plugin? Or platform:/resource?
>
>> resolve this?
> in corresponding .gmfgen model - you have to check references to a
> notation.ecore elements there.
>
> -----------------
> Alex Shatalin
>
>
Re: Diagram Runtime Class must be a notation::Diagram or sub-class [message #235868 is a reply to message #235788] Thu, 09 July 2009 18:19 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Bill,

> href=" ../../../plugin/org.eclipse.gmf.runtime.notation/model/notat ion.
> genmodel#//notation/Node"/>
it's relative reference from the URI of the current file to platform:/plugin...

-----------------
Alex Shatalin
Re: Diagram Runtime Class must be a notation::Diagram or sub-class [message #235908 is a reply to message #235868] Fri, 10 July 2009 09:43 Go to previous message
Bill HingeFriend
Messages: 156
Registered: July 2009
Senior Member
Alex Shatalin wrote:
> Hello Bill,
>
>> href=" ../../../plugin/org.eclipse.gmf.runtime.notation/model/notat ion.
>> genmodel#//notation/Node"/>
> it's relative reference from the URI of the current file to
> platform:/plugin...
>
> -----------------
> Alex Shatalin
>
>
Thanks Alex

I think I may have found something.

I noticed that when I imported on a clean copy of amalgam everything
works fine.

But I have two projects which use the same ecore,genmodel but have
different names and ID's etc. When only one set of projects is open
everything is fine, but if I open both my editors show errors. (both
are based on the EMF-GMF joint domain). It seems if I stay on amalgam
and only keep one open then I'm OK. Presumably a config issue?

One project was the original, the other was refactored from the other
(I changed the id's etc)

regards
Steve
Previous Topic:How to put two labels on the same line in a rectangle ?
Next Topic:Compartment question
Goto Forum:
  


Current Time: Tue Apr 07 11:44:46 GMT 2020

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

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

Back to the top