Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » External Models with xtext and xpand
External Models with xtext and xpand [message #620741] Sat, 21 March 2009 08:45
Hasan Ceylan is currently offline Hasan CeylanFriend
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
Previous Topic:New EMFT Component Proposal: EGF
Next Topic:External Models with xtext and xpand
Goto Forum:
  


Current Time: Fri Apr 19 23:53:25 GMT 2024

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

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

Back to the top