Package com.e1c.langtool.builder
Interface IBuiltResourceQueue
- All Superinterfaces:
IManagedService
- All Known Implementing Classes:
BuiltResourceQueue
A service that allows to store all paths to built resources
and process them by builder participants.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceListener to notify about any changes of storages for built resource queue. -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(org.eclipse.core.resources.IProject project, BuiltResource resource) Adds a new built resource for the given project to the storage.voidAdds a new post change listener to listeners list.org.eclipse.core.runtime.jobs.JobasyncInvokeParticipants(org.eclipse.core.resources.IProject project, Runnable callback) Asynchronously starts participants to process this queue for the given project.Collection<org.eclipse.core.resources.IProject>Returns a collection of projects that contain resources stored at this queue.booleanisMute()Returns true if this queue is mute bymute()method.voidmute()Blocks all notifications of registeredIBuiltResourceQueue.IQueueChangeListeners.voidRemoves a post change listener form listeners list.voidsyncInvokeParticipants(org.eclipse.core.resources.IProject project, org.eclipse.core.runtime.IProgressMonitor monitor) Synchronously starts participants to process this queue for the given project.voidunmute()Unblocks all notifications of registeredIBuiltResourceQueue.IQueueChangeListeners.voidunmute(QueueChangeEvent event) Unblocks all notifications of registeredIBuiltResourceQueue.IQueueChangeListeners and asynchronously notifies all listeners by the given event.Methods inherited from interface com._1c.g5.wiring.IManagedService
activate, deactivate
-
Method Details
-
add
Adds a new built resource for the given project to the storage.- Parameters:
project- a project of built resourceresource- a built resource
-
asyncInvokeParticipants
org.eclipse.core.runtime.jobs.Job asyncInvokeParticipants(org.eclipse.core.resources.IProject project, Runnable callback) Asynchronously starts participants to process this queue for the given project.Note that calling of this method removes all processed resources from storage.
- Parameters:
project- a project for which resources will be processedcallback- a function that will be asynchronously called when all resources are processed- Returns:
- a job created to run a processing task. Note that this job may be not run.
-
syncInvokeParticipants
void syncInvokeParticipants(org.eclipse.core.resources.IProject project, org.eclipse.core.runtime.IProgressMonitor monitor) Synchronously starts participants to process this queue for the given project.Note that calling of this method removes all processed resources from storage.
- Parameters:
project- a project for which resources will be processedmonitor- a progress monitor
-
addQueuePostChangeListener
Adds a new post change listener to listeners list.- Parameters:
listener- a listener to register
-
removeQueuePostChangeListener
Removes a post change listener form listeners list.- Parameters:
listener- a listener to unregister
-
getBuiltProjects
Collection<org.eclipse.core.resources.IProject> getBuiltProjects()Returns a collection of projects that contain resources stored at this queue.- Returns:
- a collection of projects that contain resources stored at this queue
-
mute
void mute()Blocks all notifications of registeredIBuiltResourceQueue.IQueueChangeListeners.- See Also:
-
unmute
void unmute()Unblocks all notifications of registeredIBuiltResourceQueue.IQueueChangeListeners. -
unmute
Unblocks all notifications of registeredIBuiltResourceQueue.IQueueChangeListeners and asynchronously notifies all listeners by the given event.- Parameters:
event- an event will be sent to registered listeners
-
isMute
boolean isMute()Returns true if this queue is mute bymute()method.
-