External Models with xtext and xpand [message #620741] |
Sat, 21 March 2009 08:45 |
Hasan Ceylan Messages: 198 Registered: July 2009 |
Senior Member |
|
|
Hello,
I need some defaults in my editor meta model. I could not find a way to
express a default value for an attribute therefore I factored my meta model
out of the workflow and started manually coding the model with the defaults
I like.
Then I ran into a problem:
1) I cannot reference the meta model with the uri like
http://www.mycompany.com/model/1.0 . rather I need to go down the
platform:/resource the path...
Otherwise I get:
java.lang.IllegalStateException: Unresolved proxy
http://www.mycompany.com/model/1.0#//EditorModel Make sure the EPackage has
been registered.
2) Then my xpt, ext and chk files cannot locate the classes nethier the code
generation from the generator project works, complaining with the same
problem "cannot find meta model".
My questions are,
1) Is there a way to express defaults for the attributes in xtext?
2) What is the correct way of using an external editor model for the xtext
editor and code generation?
Thanks in advance,
Hasan Ceylan
|
|
|
Powered by
FUDForum. Page generated in 0.02777 seconds