Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Can't find genClass for class 'MyClass' in package myPckage
Can't find genClass for class 'MyClass' in package myPckage [message #23387] Fri, 18 August 2006 15:11 Go to next message
sakae is currently offline sakae
Messages: 21
Registered: July 2009
Junior Member
I get the following message when invoke "Create generator model..." in
gmfmap file. Does anyone know what the cause is ????


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

java.lang.IllegalStateException: Can't find genClass for class 'MyClass'
in package myPckage
at
org.eclipse.gmf.internal.bridge.genmodel.GenModelMatcher.fin dGenClass(GenModelMatcher.java:82)
at
org.eclipse.gmf.internal.bridge.genmodel.DiagramGenModelTran sformer.findGenClass(DiagramGenModelTransformer.java:638)
at
org.eclipse.gmf.internal.bridge.genmodel.DiagramGenModelTran sformer.setupModelFacet(DiagramGenModelTransformer.java:699)
at
org.eclipse.gmf.internal.bridge.genmodel.DiagramGenModelTran sformer.createModelFacet(DiagramGenModelTransformer.java:658 )
at
org.eclipse.gmf.internal.bridge.genmodel.DiagramGenModelTran sformer.process(DiagramGenModelTransformer.java:241)
at
org.eclipse.gmf.internal.bridge.genmodel.MappingTransformer. transform(MappingTransformer.java:32)
at
org.eclipse.gmf.internal.codegen.popup.actions.TransformToGe nModel$1.transform(TransformToGenModel.java:189)
at
org.eclipse.gmf.internal.codegen.popup.actions.TransformToGe nModel$1.run(TransformToGenModel.java:159)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
Re: Can't find genClass for class 'MyClass' in package myPckage [message #23688 is a reply to message #23387] Fri, 18 August 2006 19:04 Go to previous messageGo to next message
Wolfgang Willinghöfer is currently offline Wolfgang Willinghöfer
Messages: 1
Registered: July 2009
Junior Member
I had the same problem. Changes to the ecore diagram (new class) does not
change the existing genmodel file, although then genmodel editor shows the
new class, but the genmodel xml file does not contain the new class. Delete
the genmodel file and recreate it solves the problem.

Hope this helps.

Wolfgang

"Sakae Nakajima" <sakae55@gmail.com> schrieb im Newsbeitrag
news:ec4lae$bfm$1@utils.eclipse.org...
>I get the following message when invoke "Create generator model..." in
>gmfmap file. Does anyone know what the cause is ????
>
>
> An internal error occurred during: "Create generator model...".
>
> java.lang.IllegalStateException: Can't find genClass for class 'MyClass'
> in package myPckage
> at
> org.eclipse.gmf.internal.bridge.genmodel.GenModelMatcher.fin dGenClass(GenModelMatcher.java:82)
> at
> org.eclipse.gmf.internal.bridge.genmodel.DiagramGenModelTran sformer.findGenClass(DiagramGenModelTransformer.java:638)
> at
> org.eclipse.gmf.internal.bridge.genmodel.DiagramGenModelTran sformer.setupModelFacet(DiagramGenModelTransformer.java:699)
> at
> org.eclipse.gmf.internal.bridge.genmodel.DiagramGenModelTran sformer.createModelFacet(DiagramGenModelTransformer.java:658 )
> at
> org.eclipse.gmf.internal.bridge.genmodel.DiagramGenModelTran sformer.process(DiagramGenModelTransformer.java:241)
> at
> org.eclipse.gmf.internal.bridge.genmodel.MappingTransformer. transform(MappingTransformer.java:32)
> at
> org.eclipse.gmf.internal.codegen.popup.actions.TransformToGe nModel$1.transform(TransformToGenModel.java:189)
> at
> org.eclipse.gmf.internal.codegen.popup.actions.TransformToGe nModel$1.run(TransformToGenModel.java:159)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
Tutorial - Audit doesn´t work [message #23731 is a reply to message #23688] Fri, 18 August 2006 20:26 Go to previous messageGo to next message
Eclipse User
Originally posted by: leonardo.coelho.siliconstrategy.com.br

Hi, guys, i´m a newbie and it´s my second day working with GMF.

I´ve downloaded the MindMap tutorial 2 source code and it doesn´t work.
Can everybody help me? I´ve followed all tutorial instructions.

The first example works well and everything is ok, except audit and the
problem with the duplicate graphical link.

By the way, is there a new eclipse environment download available? Of
course, with duplicate graphical link corrected!

Regards!

--

=============================/============================== ====
Leonardo Coelho
=============================/============================== =====
Re: Tutorial - Audit doesn´t work [message #23775 is a reply to message #23731] Fri, 18 August 2006 20:30 Go to previous messageGo to next message
Richard Gronback is currently offline Richard Gronback
Messages: 605
Registered: July 2009
Senior Member
Hi,

The latest working (fixed duplicate links) code is in CVS, and in the
provided solution zips (as of yesterday).

Can you provide more detail on the problem with the audits? Are there any
error log entries?

Thanks,
Rich


On 8/18/06 4:26 PM, in article ec57ln$au7$1@utils.eclipse.org, "Leonardo
Coelho" <leonardo.coelho@siliconstrategy.com.br> wrote:

> Hi, guys, i´m a newbie and it´s my second day working with GMF.
>
> I´ve downloaded the MindMap tutorial 2 source code and it doesn´t work.
> Can everybody help me? I´ve followed all tutorial instructions.
>
> The first example works well and everything is ok, except audit and the
> problem with the duplicate graphical link.
>
> By the way, is there a new eclipse environment download available? Of
> course, with duplicate graphical link corrected!
>
> Regards!
Re: Can't find genClass for class 'MyClass' in package myPckage [message #24299 is a reply to message #23688] Mon, 21 August 2006 08:53 Go to previous messageGo to next message
sakae is currently offline sakae
Messages: 21
Registered: July 2009
Junior Member
Thanks very much.
Your advice worked for me.


Wolfgang Willinghöfer wrote:
> I had the same problem. Changes to the ecore diagram (new class) does not
> change the existing genmodel file, although then genmodel editor shows the
> new class, but the genmodel xml file does not contain the new class. Delete
> the genmodel file and recreate it solves the problem.
>
> Hope this helps.
>
> Wolfgang
>
> "Sakae Nakajima" <sakae55@gmail.com> schrieb im Newsbeitrag
> news:ec4lae$bfm$1@utils.eclipse.org...
>> I get the following message when invoke "Create generator model..." in
>> gmfmap file. Does anyone know what the cause is ????
>>
>>
>> An internal error occurred during: "Create generator model...".
>>
>> java.lang.IllegalStateException: Can't find genClass for class 'MyClass'
>> in package myPckage
>> at
>> org.eclipse.gmf.internal.bridge.genmodel.GenModelMatcher.fin dGenClass(GenModelMatcher.java:82)
>> at
>> org.eclipse.gmf.internal.bridge.genmodel.DiagramGenModelTran sformer.findGenClass(DiagramGenModelTransformer.java:638)
>> at
>> org.eclipse.gmf.internal.bridge.genmodel.DiagramGenModelTran sformer.setupModelFacet(DiagramGenModelTransformer.java:699)
>> at
>> org.eclipse.gmf.internal.bridge.genmodel.DiagramGenModelTran sformer.createModelFacet(DiagramGenModelTransformer.java:658 )
>> at
>> org.eclipse.gmf.internal.bridge.genmodel.DiagramGenModelTran sformer.process(DiagramGenModelTransformer.java:241)
>> at
>> org.eclipse.gmf.internal.bridge.genmodel.MappingTransformer. transform(MappingTransformer.java:32)
>> at
>> org.eclipse.gmf.internal.codegen.popup.actions.TransformToGe nModel$1.transform(TransformToGenModel.java:189)
>> at
>> org.eclipse.gmf.internal.codegen.popup.actions.TransformToGe nModel$1.run(TransformToGenModel.java:159)
>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
>
>
Re: Can't find genClass for class 'MyClass' in package myPckage [message #1044114 is a reply to message #24299] Thu, 18 April 2013 14:04 Go to previous message
Nicolas Scardilla is currently offline Nicolas Scardilla
Messages: 15
Registered: April 2013
Junior Member
In the end that causes this error: "can not find GenClass for class in package"???
Unable to find a clear solution for the!
Previous Topic:Best practice
Next Topic:How to add EClass objects programmatically to a diagram?
Goto Forum:
  


Current Time: Mon Oct 20 13:22:22 GMT 2014

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

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