Hi,
I have a domain model DSL where I model various entity types. There are a number of 'standard' entity types (String, Date, Integer, etc) that I have defined in a model file:
StandardTypes.entity_model:
namespace standard {
entity String
entity Date
entity Integer
//... etc ...
}
I can then have other models use these by importing the common namespace, e.g.:
CustomTypes.entity_model:
import standard.*
namespace custom {
entity Person {
property name : String
property birthday : Date
}
}
This works so long as the StandardTypes.entity_model file is in the same project as the CustomTypes.entity_model file, i.e.:
MyProject/
StandardTypes.entity_model
CustomTypes.entity_model
BUT what I'd really like to be able to keep the StandardTypes.entity_model in my Xtext DSL plugin and make it automatically available so that any .entity_model instances will automatically link against it without requiring a copy of StandardTypes.entity_model to be physically present in the project where the custom instance resides, i.e.:
MyProject/
CustomTypes.entity_model
How can I do this?
Thanks,
Edwin