public class SubscriberScopeManager extends SynchronizationScopeManager implements ISubscriberChangeListener
ISynchronizationScopeManager that uses a Subscriber to provide
a RemoteResourceMappingContext and to notify participants when the
remote state of resources change.| Constructor and Description |
|---|
SubscriberScopeManager(String name,
ResourceMapping[] inputMappings,
Subscriber subscriber,
boolean consultModels)
Create a manager for the given subscriber and input.
|
SubscriberScopeManager(String name,
ResourceMapping[] inputMappings,
Subscriber subscriber,
RemoteResourceMappingContext context,
boolean consultModels)
Create a manager for the given subscriber and input.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Method to be invoked when the scope of this
manager is no longer needed.
|
protected Subscriber |
getSubscriber()
Return the subscriber for this manager.
|
void |
initialize(IProgressMonitor monitor)
Build the scope that is used to determine the complete set of resource
mappings, and hence resources, that an operation should be performed on.
|
ResourceTraversal[] |
refresh(ResourceMapping[] mappings,
IProgressMonitor monitor)
Refresh the scope of this manager for the given mappings.
|
void |
subscriberResourceChanged(ISubscriberChangeEvent[] deltas)
Notifies this listener that some resources' subscriber properties have
changed.
|
addMappingToScope, adjustInputTraversals, createScope, getContext, getMappingsFromProviders, getName, getSchedulingRule, getScope, isInitialized, refresh, setHasAdditionalMappings, setHasAdditionalResourcesgetAdapterpublic SubscriberScopeManager(String name, ResourceMapping[] inputMappings, Subscriber subscriber, boolean consultModels)
name - a human readable name for the scopeinputMappings - the input mappingssubscriber - the subscriberconsultModels - whether models should be consulted when calculating the scopepublic SubscriberScopeManager(String name, ResourceMapping[] inputMappings, Subscriber subscriber, RemoteResourceMappingContext context, boolean consultModels)
name - a human readable name for the scopeinputMappings - the input mappingssubscriber - the subscribercontext - a remote resource mapping conext for the subscriberconsultModels - whether models should be consulted when calculating the scopeprotected Subscriber getSubscriber()
public void dispose()
ISynchronizationScopeManagerdispose in interface ISynchronizationScopeManagerdispose in class SynchronizationScopeManagerpublic void initialize(IProgressMonitor monitor) throws CoreException
ISynchronizationScopeManagerThis method obtains a lock on the workspace root to avoid workspace changes while calculating the scope.
initialize in interface ISynchronizationScopeManagerinitialize in class SynchronizationScopeManagermonitor - a progress monitor
when building the scopeCoreExceptionpublic ResourceTraversal[] refresh(ResourceMapping[] mappings, IProgressMonitor monitor) throws CoreException
ISynchronizationScopeManagerrefresh in interface ISynchronizationScopeManagerrefresh in class SynchronizationScopeManagermappings - the mappings to be refreshedmonitor - a progress monitorCoreExceptionpublic void subscriberResourceChanged(ISubscriberChangeEvent[] deltas)
ISubscriberChangeListenersubscriberResourceChanged in interface ISubscriberChangeListenerdeltas - detailing the kinds of changesGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.