Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Create Xtext/Xbase project with predefined ecore model
Create Xtext/Xbase project with predefined ecore model [message #767667] Sun, 18 December 2011 16:25 Go to next message
tiange zhang is currently offline tiange zhangFriend
Messages: 16
Registered: February 2011
Location: Shanghai, China
Junior Member
Hi,

I want to use predefined ecore model instead of inferred ecore model for my grammar. If the predefined ecore model contains reference to JvmTypeReference, "create Xtext project from existing Ecore Models" wizard will generate a very large grammar which can't pass the generation.

Is there a document that provide simple steps guide creating such kind of Xtext project? How to define the grammar and how to write the workflow file?

I defined a very simple ecore model like this:
class Model{
	part Entity[] entities;
}

class Entity{
	String name;
	part JvmTypeReference mapto;
}


Thanks

[Updated on: Sun, 18 December 2011 16:26]

Report message to a moderator

Re: Create Xtext/Xbase project with predefined score model [message #768276 is a reply to message #767667] Mon, 19 December 2011 20:38 Go to previous message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Did you follow the usual recommendations when it comes to large
grammars? Increase heap, increase generator timeouts, use classplitting
and the like?

Tutorials are available on the website http://www.eclipse.org/Xtext

Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com

Am 18.12.11 17:25, schrieb tiange zhang:
> Hi,
>
> I want to use predefined ecore model instead of inferred ecore model for
> my grammar. If the predefined ecore model contains reference to
> JvmTypeReference, "create Xtext project from existing Ecore Models"
> wizard will generate a very large grammar which can't pass the generation.
>
> Is there a document that provide simple steps guide creating such kind
> of Xtext project? How to define the grammar and how to write the
> workflow file?
>
> I defined a very simple ecore model like this:
>
> class Model{
> part Entity[] entities;
> }
>
> class Entity{
> String name;
> part JvmTypeReference mapto;
> }
>
>
> Thanks
Previous Topic:[Xtend] Support for abstract classes/methods?
Next Topic:Problems with scoping
Goto Forum:
  


Current Time: Tue Apr 23 13:39:28 GMT 2024

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

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

Back to the top