How to remove internal validation [message #902208] |
Thu, 16 August 2012 11:31 |
rahul kumar Messages: 4 Registered: July 2009 |
Junior Member |
|
|
I am working on an xtext project with import feature. But I do not want to create the DSL files inside the project. So I am creating files outside of xtext project and then programatically link them with the project and then I get the model from main as well as from the imported files(after loading and adding the resources from the imported files). But the problem is Xtext Import URI validation.
Now if the import statement is import "../../../../test/IntestPkg1.hmood" then the internal validator (ImportUriValidator) shows an error that the imported resource cannot be found how ever I am able to load the resources from the imported file and it can be seen in outline view also. You can see the attached snapshot. My question is
1. Is there some way to customize the internal validation?
2. The internal validation methods are final so I am not able to override them
3. Somewhere I read that IResourceValidator can be helpful for this problem. But I don't know how to use IResourceValidator in xtext 2.1.0
|
|
|
Powered by
FUDForum. Page generated in 0.03498 seconds