Re: External Models with xtext and xpand [message #32957] |
Sat, 21 March 2009 07:10 |
Eclipse User |
|
|
|
Hasan,
I've seen this question recently in the TMF newsgroup so I'm redirecting
your question there by adding it to the "to" list of the reply.
Hasan Ceylan wrote:
> 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.03380 seconds