Skip to main content



      Home
Home » Modeling » TMF (Xtext) » How to only load from model types declared in the same file?
How to only load from model types declared in the same file? [message #640035] Thu, 18 November 2010 13:32 Go to next message
Eclipse UserFriend
Hi,

I've been working off adapting the project that came with the new XText project wizard and I've defined a filetype and derived a model from my grammar (for starters).

I've created some types derived from the grammar and I've littered the grammar with references to types declared elsewhere in the grammar.

The problem is that I can refer to types declared in different model files. I wish to only allow references to instances of model types declared in the same file (or via reference from the main file to external files).

What is the configuration option to prevent unwanted model leakage?

Thanks,

Chris
Re: How to only load from model types declared in the same file? [message #640052 is a reply to message #640035] Thu, 18 November 2010 15:09 Go to previous message
Eclipse UserFriend
Hi,

have a look at the Global Scopes Based On Explicit Imports (ImportURI Mechanism) section in the docs.

~Christian
Previous Topic:importURI Resource Path
Next Topic:Parsing sections with optional ordering
Goto Forum:
  


Current Time: Thu Oct 30 19:35:15 EDT 2025

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

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

Back to the top