Class CustomUriValidator


  • public class CustomUriValidator
    extends org.eclipse.xtext.ui.resource.UriValidator
    Optimized implementation of UriValidator which does not block resource subsystem during checks. The effect is achieved due to removal of IResourceUIServiceProviderExtension 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 Detail

      • CustomUriValidator

        public CustomUriValidator()
    • Method Detail

      • isValid

        public boolean isValid​(org.eclipse.emf.common.util.URI uri,
                               org.eclipse.core.resources.IStorage storage)
        Overrides:
        isValid in class org.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 class org.eclipse.xtext.ui.resource.UriValidator