Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Loading type definition from an external file(Loading Type definitions)
Loading type definition from an external file [message #676963] Tue, 07 June 2011 06:21
Sasi Varnan Sundarakandasamy is currently offline Sasi Varnan SundarakandasamyFriend
Messages: 9
Registered: June 2011
Junior Member
Hi,

I am trying to create an editor for expressions. In my expression I want to use something like JavaVMTypes.
The types to be used in the editor comes from an external file. The file doesn't have an EMF model defined.
Lets say I have an xxx.expr file then the type definition will come from a xxx.type file. If there is no .type file available then only primitive types(int and String) can be used. I want the type definition to be loaded from the xxx.type file for each xxx.expr.
I read Scope provider and IContainer.Manager in the XText documentation.
I am bit confused with the document on how to use these APIs.
Can someone help me which API to use and how to restrict the type loading only from one external file.


Thanks & Regards
Sasi Varnan
Previous Topic:Re: intermediate antlr file
Next Topic:Syntactic predicate in Xtext 2.0
Goto Forum:
  


Current Time: Thu Apr 25 12:49:10 GMT 2024

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

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

Back to the top