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 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 Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    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)
     

    Methods inherited from class org.eclipse.xtext.ui.resource.UriValidator

    isPossiblyManaged

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CustomUriValidator

      public CustomUriValidator()
  • Method Details

    • 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