[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.tmf] Re: How to tell xtext to *not* try to generate an emf model because it uses only imported models?

Hi Michael,

Does your grammar declare any meta models to be generated (http://www.eclipse.org/Xtext/documentation/0_7_2/xtext.html#EPackagegeneration)? I would expect your grammar to only import existing meta models (http://www.eclipse.org/Xtext/documentation/0_7_2/xtext.html#EPackageimport) in which case no (empty) Ecore model should be generated.

Regards,

--knut

Michael Scharf wrote:
I finally managed to create a grammar that only uses
types from imported packages. All rules return some
type. Therefore the generated ecore file is empty
(it only contains a empty package). But the workflow
generates 3 problem:
  1. it adds the (not) generated packages to the MANIFEST.MF
  2. the XxxStandaloneSetup wants to register the
     XxxPackage.eINSTANCE which has not been generated
  3. the AbstractXxxJavaValidator reherences the non existin
     package.

I guess there is a trick in to change the workflow... But
I am not able to figure it out.