Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » How to remove internal validation (Customize internal validator)
How to remove internal validation [message #902208] Thu, 16 August 2012 11:31
rahul kumar is currently offline rahul kumarFriend
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
Previous Topic:Modifying an Xtext document from a worker thread
Next Topic:JvmIdentifiableElement
Goto Forum:
  


Current Time: Sun Nov 29 23:37:24 GMT 2020

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

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

Back to the top