Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » [Eugenia-newbie]: Compile errors in generated code?
[Eugenia-newbie]: Compile errors in generated code? [message #1293847] Sun, 13 April 2014 01:06 Go to next message
Scott Finnie is currently offline Scott FinnieFriend
Messages: 91
Registered: October 2011
Trying to build my first editor with eugenia and running into problems. Specifically: there are compile errors in the generated code.

Would appreciate any help. So far I have:

1. Installed Epsilon ( Eugenia
2. Created new project, added new emfatic file for model. Contents below.
3. Right-clicked & selected Eugenia->Generate GMF Editor
4. Everything seemed OK - no errors - so launched runtime eclipse. However: there was no option to create a diagram for my model, only a model using the standard emf tree editor
5. Had a look again and realised I hadn't noticed the GMF 'code gen complete' dialogue. Had a root about and realised GMF wasn't installed - so installed it.
6. Re-ran Eugenia->Generate GMF editor. Now generates all the source & I get the confirmation dialogue - says successful.
7. Tried to launch runtime instance. However fails due to compilation errors in the generated source; specifically:
- *.diagram.part/
- *.diagram.edit.policies/*
- *.diagram.edit.policies/*

Thanks for any pointers.

.emf file contents as follows:
class Domain {
	attr String name;
	val ModelElement[*] elements;

abstract class ModelElement {
	attr String name;

@gmf.node(label = "name", figure = "rectangle")
class FClass extends ModelElement {
	//val Property[*] properties;

@gmf.node(	label = "name", 
			figure = "ellipse", 
			size = "10,10",
class GenSpec extends ModelElement {"closedarrow")
	ref FClass supertype;"none")
	ref FClass[*] subtypes;

Re: [Eugenia-newbie]: Compile errors in generated code? [message #1294896 is a reply to message #1293847] Sun, 13 April 2014 22:26 Go to previous message
Scott Finnie is currently offline Scott FinnieFriend
Messages: 91
Registered: October 2011
Found it. I had originally used 'Class' instead of 'FClass' & didn't realise the generated directories weren't cleaned automatically. There was a name clash I think as deleting the generated projects & re-generating fixed the problem.
Previous Topic:Deep copy of model element
Next Topic:containsKey not found?
Goto Forum:

Current Time: Sat Oct 10 20:01:34 GMT 2015

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

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