Package com._1c.g5.v8.dt.bsl.validation
Class CustomUriValidator
- java.lang.Object
-
- org.eclipse.xtext.ui.resource.UriValidator
-
- com._1c.g5.v8.dt.bsl.validation.CustomUriValidator
-
public class CustomUriValidator extends org.eclipse.xtext.ui.resource.UriValidator
Optimized implementation ofUriValidator
which does not block resource subsystem during checks. The effect is achieved due to removal ofIResourceUIServiceProviderExtension
check and call. The implementation of this interface (DefaultResourceUIServiceProvider
) checks Java nature of a project via reading project fields, blocking the resource subsystem while doing those readings
-
-
Constructor Summary
Constructors Constructor Description CustomUriValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canBuild(org.eclipse.emf.common.util.URI uri, org.eclipse.core.resources.IStorage storage)
boolean
isValid(org.eclipse.emf.common.util.URI uri, org.eclipse.core.resources.IStorage storage)
-
-
-
Method Detail
-
isValid
public boolean isValid(org.eclipse.emf.common.util.URI uri, org.eclipse.core.resources.IStorage storage)
- Overrides:
isValid
in classorg.eclipse.xtext.ui.resource.UriValidator
-
canBuild
public boolean canBuild(org.eclipse.emf.common.util.URI uri, org.eclipse.core.resources.IStorage storage)
- Overrides:
canBuild
in classorg.eclipse.xtext.ui.resource.UriValidator
-
-