Editor gives problems, when using external metamodel, eventhough MM is registered. [message #499836] |
Tue, 24 November 2009 05:36  |
Eclipse User |
|
|
|
Hello,
If I use a metamodel from an external project using:
<!-- set up EMF for standalone execution -->
<bean class="org.eclipse.emf.mwe.utils.StandaloneSetup" >
<platformUri value=".."/>
<registerEcoreFile value="platform:/resource/ecore2gwt/metamodels/myMM..ecore" />
</bean>
then my editor shows all these red 'error lines' in the .xpt file.
But, if i run the transformation it does work. But still, this is annoying, because if I do make an error, my Problems view reports a bunch of irrelevant errors also, possibly 'hiding' the error i want to catch.
If i copy the metamodel inside the xpand project's metamodel dir, and put comments around the <registerEcoreFile > element, it works. But i would like to keep it external, since i'm still working on the metamodel.
Hope someone can help
Regards,
Marten
|
|
|
Re: Editor gives problems, when using external metamodel, eventhough MM is registered. [message #500076 is a reply to message #499836] |
Tue, 24 November 2009 16:05  |
Eclipse User |
|
|
|
The editor will only see *.ecore files which are on the classpath of the
project where you have the templates.
It does not use any information from *.mwe files.
Cheers,
Sven
Marten Sijtema schrieb:
> Hello,
>
> If I use a metamodel from an external project using:
>
>
> <!-- set up EMF for standalone execution -->
> <bean class="org.eclipse.emf.mwe.utils.StandaloneSetup" >
> <platformUri value=".."/>
> <registerEcoreFile
> value="platform:/resource/ecore2gwt/metamodels/myMM..ecore" /> </bean>
>
>
> then my editor shows all these red 'error lines' in the .xpt file.
> But, if i run the transformation it does work. But still, this is
> annoying, because if I do make an error, my Problems view reports a
> bunch of irrelevant errors also, possibly 'hiding' the error i want to
> catch.
>
> If i copy the metamodel inside the xpand project's metamodel dir, and
> put comments around the <registerEcoreFile > element, it works. But i
> would like to keep it external, since i'm still working on the metamodel.
>
> Hope someone can help
>
> Regards,
>
> Marten
>
--
Need professional support for Xtext and EMF?
Go to: http://xtext.itemis.com
|
|
|
Powered by
FUDForum. Page generated in 0.35962 seconds