Class ActiveXtextResourceAccessor

java.lang.Object
com._1c.g5.v8.dt.internal.bsl.validation.ActiveXtextResourceAccessor
All Implemented Interfaces:
IActiveXtextResourceAccessor

public class ActiveXtextResourceAccessor extends Object implements IActiveXtextResourceAccessor
Implementation of the IActiveXtextResourceAccessor which holds registrations of active resource in the memory
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    deregisterActiveResourceProvider(org.eclipse.emf.common.util.URI resourceUri)
    Removes the publication for the given resource
    boolean
    execute(org.eclipse.xtext.util.concurrent.IUnitOfWork<Void,org.eclipse.xtext.resource.XtextResource> work, org.eclipse.emf.common.util.URI resourceUri)
    Executes the given read operation on the given resource, if the resource is registered within this service
    void
    registerActiveResourceProvider(Supplier<org.eclipse.xtext.util.concurrent.IReadAccess<org.eclipse.xtext.resource.XtextResource>> readAccessSupplier, Runnable postExecutionHandler, org.eclipse.emf.common.util.URI resourceUri)
    Registers active resource supplier with aditional post-execution Runnable which is activated after the execution of the operation It's not the part of the public EDT API

    Methods inherited from class java.lang.Object

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

    • ActiveXtextResourceAccessor

      public ActiveXtextResourceAccessor()
  • Method Details

    • deregisterActiveResourceProvider

      public void deregisterActiveResourceProvider(org.eclipse.emf.common.util.URI resourceUri)
      Description copied from interface: IActiveXtextResourceAccessor
      Removes the publication for the given resource
      Specified by:
      deregisterActiveResourceProvider in interface IActiveXtextResourceAccessor
      Parameters:
      resourceUri - The resource URI to remove publication for. May not be null
    • execute

      public boolean execute(org.eclipse.xtext.util.concurrent.IUnitOfWork<Void,org.eclipse.xtext.resource.XtextResource> work, org.eclipse.emf.common.util.URI resourceUri)
      Description copied from interface: IActiveXtextResourceAccessor
      Executes the given read operation on the given resource, if the resource is registered within this service
      Specified by:
      execute in interface IActiveXtextResourceAccessor
      Parameters:
      work - Read operation to execute. May not be null
      resourceUri - The target resource's URI. May not be null
      Returns:
      True in case if the resource is registered and the operation was executed (successfully or not)
    • registerActiveResourceProvider

      public void registerActiveResourceProvider(Supplier<org.eclipse.xtext.util.concurrent.IReadAccess<org.eclipse.xtext.resource.XtextResource>> readAccessSupplier, Runnable postExecutionHandler, org.eclipse.emf.common.util.URI resourceUri)
      Description copied from interface: IActiveXtextResourceAccessor
      Registers active resource supplier with aditional post-execution Runnable which is activated after the execution of the operation It's not the part of the public EDT API
      Specified by:
      registerActiveResourceProvider in interface IActiveXtextResourceAccessor
      Parameters:
      readAccessSupplier - The supplier of the read-accessor of the resource. May not be null
      postExecutionHandler - The post-execution runnable that is called on successful execution of the client-supplied operation. May be null
      resourceUri - The target resource's URI. May not be null