Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Re running Eugenia Example- help required
Re running Eugenia Example- help required [message #585232] Wed, 27 January 2010 15:11 Go to next message
saad bin abid is currently offline saad bin abid
Messages: 60
Registered: October 2009
Location: Ireland
Member
Hello Epsilon experts,
I am very new to epsilon stuff especially to Eugenia. I am trying to re run the example given in screen cast (filesystem project) on official website. I can sucessfully create filesystem.gmfgraph, filesystem.gmfmap, filesystem.gmftool. for generating filesystem.gmfgen i run the wizard. In example video the transformation step is done automatically and no qvto transformations (prepost-reconcile) is required. yet the filesystem.gmfgen model is created. I how ever tried to workout without qvto transformation by selecting java i get this error message
i get the following error message:

" org.eclipse.m2m.internal.qvt.oml.compiler.QVTOCompiler.compi le(Ljava/lang/String;Lorg/eclipse/m2m/internal/qvt/oml/compi ler/QvtCompilerOptions;Lorg/eclipse/emf/common/util/Monitor; )Lorg/eclipse/m2m/internal/qvt/oml/compiler/CompiledUnit; "


I don't know how to continue from here or is there a complete project with qvto transformations which i can understand as a starter example with and without qvto transformation.


best regards
saad
Re: Re running Eugenia Example- help required [message #585264 is a reply to message #585232] Wed, 27 January 2010 22:32 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios Kolovos
Messages: 1776
Registered: July 2009
Senior Member
Hi Saad,

I must admit I've never encountered anything similar before. Which
version of Eclipse/GMF are you using?

Cheers,
Dimitris

Please see comments below.

saad bin abid wrote:
> Hello Epsilon experts,
> I am very new to epsilon stuff especially to Eugenia. I am trying to re
> run the example given in screen cast (filesystem project) on official
> website. I can sucessfully create filesystem.gmfgraph,
> filesystem.gmfmap, filesystem.gmftool. for generating filesystem.gmfgen
> i run the wizard. In example video the transformation step is done
> automatically and no qvto transformations (prepost-reconcile) is
> required. yet the filesystem.gmfgen model is created. I how ever tried
> to workout without qvto transformation by selecting java i get this
> error message
> i get the following error message:
>
> " org.eclipse.m2m.internal.qvt.oml.compiler.QVTOCompiler.compi
> le(Ljava/lang/String;Lorg/eclipse/m2m/internal/qvt/oml/compi
> ler/QvtCompilerOptions;Lorg/eclipse/emf/common/util/Monitor;
> )Lorg/eclipse/m2m/internal/qvt/oml/compiler/CompiledUnit; "
>
>
> I don't know how to continue from here or is there a complete project
> with qvto transformations which i can understand as a starter example
> with and without qvto transformation.
>
>
> best regards
> saad


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Re: Re running Eugenia Example- help required [message #853949 is a reply to message #585232] Mon, 23 April 2012 13:57 Go to previous messageGo to next message
Julian Johnson is currently offline Julian Johnson
Messages: 3
Registered: April 2012
Junior Member
(Hi, my first post to this forum, so apologies if I've not used correctly.
Running Eclipse Epsilon, from the epsilon-0.9.1-win32.zip build.)

I have attempted to run the Eugenia 'filesystem' example, second screencast example. Two questions:

Q1 is there an insistency between the filesystem.emf code as listed in the screencast, versus that available in the cvs filesystem? For instance, first 12 lines of the file code reads:

@namespace(uri="filesystem", prefix="filesystem")
package filesystem;

@gmf.diagram(foo="bar")
class Filesystem {
val Drive[*] drives;
val Sync[*] syncs;
}

class Drive extends Folder {

}


while on the screencast, the first 3 lines read:

@namespace(uri="filesystem", prefix="filesystem")
@gmf
package filesystem;


i.e. there is an extra '@gmf' line?

Q2 When I put my code in Eclipse following the example, but exactly as the cvs file, I get an error highlighed with red x at line 12:

"Encountering "Class" at line 14, column 1.
Was expecting on of:
<EOF>
"@"...
(etc) "

Q3 What in the screencast is the GMF project given such a long/esoteric name:
"gmf.eclipse.epsilon.eugenia.examples.filesystem"
-Is this simple because of how you are organising your examples, rather than literally how a user might need to name it to get it to work?

thanks
Julian
Re: Re running Eugenia Example- help required [message #853983 is a reply to message #853949] Mon, 23 April 2012 14:35 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris Kolovos
Messages: 886
Registered: July 2009
Senior Member
Hi Julian,

Q1: The @gmf line is not used by the current version of EuGENia and can be removed.

Q2: The version of Emfatic that is bundled in the Epsilon distribution does not support detail-less annotations. As such, even when no details are needed for an annotation, a dummy detail needs to be added (e.g. foo="bar")

Q3: That's just the the naming convention we use for our examples.

Cheers,
Dimitris
Re: Re running Eugenia Example- help required [message #854652 is a reply to message #853983] Tue, 24 April 2012 06:00 Go to previous messageGo to next message
Julian Johnson is currently offline Julian Johnson
Messages: 3
Registered: April 2012
Junior Member
Dimitris Kolovos wrote on Mon, 23 April 2012 10:35
Hi Julian,

Q1: The @gmf line is not used by the current version of EuGENia and can be removed.

Q2: The version of Emfatic that is bundled in the Epsilon distribution does not support detail-less annotations. As such, even when no details are needed for an annotation, a dummy detail needs to be added (e.g. foo="bar")

Q3: That's just the the naming convention we use for our examples.

Cheers,
Dimitris


Thanks for your quick reply.

Q1 OK
Q3 OK

Q2 I understand your reply, but don't know how it relates to the problem (the error) I described. I just re-ran up the same point (loaded the annotated filesystem.emf) on a different PC, and that is not flagging up an error. I'll investigate further...

Julian.
Re: Re running Eugenia Example- help required [message #854726 is a reply to message #854652] Tue, 24 April 2012 07:34 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris Kolovos
Messages: 886
Registered: July 2009
Senior Member
Hi Julian,

Different behaviour in 2 PCs most probably indicates either different versions of Emfatic or a bug. I'd add at least one detail to each annotation just to be on the safe side.

Cheers,
Dimitris
Re: Re running Eugenia Example- help required [message #855084 is a reply to message #854726] Tue, 24 April 2012 14:01 Go to previous messageGo to next message
Julian Johnson is currently offline Julian Johnson
Messages: 3
Registered: April 2012
Junior Member
All gmf lines have at least one annotation, if I understand your suggestion.

Attached (if I'd done it right) is a screen dump of what I see on my company PC. The hover text over the red 'x' reads:

Encountered "Class" at line 14, column 1.
Was expecting one of:
<EOF>
"@" ...
"package" ...
"abstract" ...
"class" ...
"interface" ...
"transient" ...
"datatype" ...

What now (to get this working)?

Julian.
Re: Re running Eugenia Example- help required [message #855267 is a reply to message #855084] Tue, 24 April 2012 16:58 Go to previous message
Ivo(sh) Musil is currently offline Ivo(sh) Musil
Messages: 17
Registered: July 2009
Junior Member
Hi Julian

just my 0.38 CZK (2c) - probably EMF is case sensitive and you have some class defined with capital C.

Ivo(sh)
Previous Topic:How to make a user-defined operation available to all my templates?
Next Topic:Using ETL transform models which are based on UML Profiles
Goto Forum:
  


Current Time: Fri Oct 24 23:08:18 GMT 2014

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

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