Class BuiltResourceQueue
java.lang.Object
com.e1c.langtool.internal.builder.BuiltResourceQueue
- All Implemented Interfaces:
IManagedService,IBuiltResourceQueue
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.e1c.langtool.builder.IBuiltResourceQueue
IBuiltResourceQueue.IQueueChangeListener -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate()voidadd(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.voidCollection<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 byIBuiltResourceQueue.mute()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.
-
Constructor Details
-
BuiltResourceQueue
public BuiltResourceQueue()
-
-
Method Details
-
add
Description copied from interface:IBuiltResourceQueueAdds a new built resource for the given project to the storage.- Specified by:
addin interfaceIBuiltResourceQueue- Parameters:
project- a project of built resourceresource- a built resource
-
asyncInvokeParticipants
public org.eclipse.core.runtime.jobs.Job asyncInvokeParticipants(org.eclipse.core.resources.IProject project, Runnable callback) Description copied from interface:IBuiltResourceQueueAsynchronously starts participants to process this queue for the given project.Note that calling of this method removes all processed resources from storage.
- Specified by:
asyncInvokeParticipantsin interfaceIBuiltResourceQueue- 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
public void syncInvokeParticipants(org.eclipse.core.resources.IProject project, org.eclipse.core.runtime.IProgressMonitor monitor) Description copied from interface:IBuiltResourceQueueSynchronously starts participants to process this queue for the given project.Note that calling of this method removes all processed resources from storage.
- Specified by:
syncInvokeParticipantsin interfaceIBuiltResourceQueue- Parameters:
project- a project for which resources will be processedmonitor- a progress monitor
-
getBuiltProjects
Description copied from interface:IBuiltResourceQueueReturns a collection of projects that contain resources stored at this queue.- Specified by:
getBuiltProjectsin interfaceIBuiltResourceQueue- Returns:
- a collection of projects that contain resources stored at this queue
-
addQueuePostChangeListener
Description copied from interface:IBuiltResourceQueueAdds a new post change listener to listeners list.- Specified by:
addQueuePostChangeListenerin interfaceIBuiltResourceQueue- Parameters:
listener- a listener to register
-
removeQueuePostChangeListener
Description copied from interface:IBuiltResourceQueueRemoves a post change listener form listeners list.- Specified by:
removeQueuePostChangeListenerin interfaceIBuiltResourceQueue- Parameters:
listener- a listener to unregister
-
mute
public void mute()Description copied from interface:IBuiltResourceQueueBlocks all notifications of registeredIBuiltResourceQueue.IQueueChangeListeners.- Specified by:
mutein interfaceIBuiltResourceQueue- See Also:
-
unmute
public void unmute()Description copied from interface:IBuiltResourceQueueUnblocks all notifications of registeredIBuiltResourceQueue.IQueueChangeListeners.- Specified by:
unmutein interfaceIBuiltResourceQueue- See Also:
-
unmute
Description copied from interface:IBuiltResourceQueueUnblocks all notifications of registeredIBuiltResourceQueue.IQueueChangeListeners and asynchronously notifies all listeners by the given event.- Specified by:
unmutein interfaceIBuiltResourceQueue- Parameters:
event- an event will be sent to registered listeners
-
isMute
public boolean isMute()Description copied from interface:IBuiltResourceQueueReturns true if this queue is mute byIBuiltResourceQueue.mute()method.- Specified by:
isMutein interfaceIBuiltResourceQueue- Returns:
- true
- See Also:
-
activate
public void activate()- Specified by:
activatein interfaceIManagedService
-
deactivate
public void deactivate()- Specified by:
deactivatein interfaceIManagedService
-