Class ActiveXtextResourceAccessor
java.lang.Object
com._1c.g5.v8.dt.internal.bsl.validation.ActiveXtextResourceAccessor
- All Implemented Interfaces:
IActiveXtextResourceAccessor
Implementation of the
IActiveXtextResourceAccessor
which holds registrations of active resource in the memory-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
deregisterActiveResourceProvider
(org.eclipse.emf.common.util.URI resourceUri) Removes the publication for the given resourceboolean
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 servicevoid
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-executionRunnable
which is activated after the execution of the operation It's not the part of the public EDT API
-
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 interfaceIActiveXtextResourceAccessor
- Parameters:
resourceUri
- The resource URI to remove publication for. May not benull
-
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 interfaceIActiveXtextResourceAccessor
- Parameters:
work
- Read operation to execute. May not benull
resourceUri
- The target resource's URI. May not benull
- 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-executionRunnable
which is activated after the execution of the operation It's not the part of the public EDT API- Specified by:
registerActiveResourceProvider
in interfaceIActiveXtextResourceAccessor
- Parameters:
readAccessSupplier
- The supplier of the read-accessor of the resource. May not benull
postExecutionHandler
- The post-execution runnable that is called on successful execution of the client-supplied operation. May benull
resourceUri
- The target resource's URI. May not benull
-