|
Eclipse Platform Release 3.3 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.runtime.PlatformObject
org.eclipse.team.core.mapping.provider.SynchronizationScopeManager
org.eclipse.team.core.subscribers.SubscriberScopeManager
A ISynchronizationScopeManager
that uses a Subscriber
to provide
a RemoteResourceMappingContext
and to notify participants when the
remote state of resources change.
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.eclipse.team.core.mapping.provider.SynchronizationScopeManager |
---|
addMappingToScope, adjustInputTraversals, createScope, getContext, getMappingsFromProviders, getName, getSchedulingRule, getScope, isInitialized, refresh, setHasAdditionalMappings, setHasAdditionalResources |
Methods inherited from class org.eclipse.core.runtime.PlatformObject |
---|
getAdapter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public 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 context for the subscriberconsultModels
- whether models should be consulted when calculating the scopeMethod Detail |
protected Subscriber getSubscriber()
public void dispose()
ISynchronizationScopeManager
dispose
in interface ISynchronizationScopeManager
dispose
in class SynchronizationScopeManager
public void initialize(IProgressMonitor monitor) throws CoreException
ISynchronizationScopeManager
This method obtains a lock on the workspace root to avoid workspace changes while calculating the scope.
initialize
in interface ISynchronizationScopeManager
initialize
in class SynchronizationScopeManager
CoreException
public ResourceTraversal[] refresh(ResourceMapping[] mappings, IProgressMonitor monitor) throws CoreException
ISynchronizationScopeManager
refresh
in interface ISynchronizationScopeManager
refresh
in class SynchronizationScopeManager
CoreException
public void subscriberResourceChanged(ISubscriberChangeEvent[] deltas)
ISubscriberChangeListener
subscriberResourceChanged
in interface ISubscriberChangeListener
deltas
- detailing the kinds of changes
|
Eclipse Platform Release 3.3 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2007. All rights reserved.