public interface ISynchronizationScopeManager
ISynchronizationScope
stay up-to-date
with the model elements (represented as ResourceMapping
instances)
contained in the scope. The task of keeping a scope up-to-date is
accomplished by obtaining ISynchronizationScopeParticipant
instances
for each model that has elements contained in the scope.
This interface is not intended to be implemented by clients. Clients can instead
subclass SynchronizationScopeManager
.
ResourceMapping
,
SynchronizationScopeManager
,
ISynchronizationScopeParticipant
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Method to be invoked when the scope of this
manager is no longer needed.
|
ISynchronizationScope |
getScope()
Return the scope that is managed by 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.
|
boolean |
isInitialized()
Return whether the scope has been initialized.
|
ResourceTraversal[] |
refresh(ResourceMapping[] mappings,
IProgressMonitor monitor)
Refresh the scope of this manager for the given mappings.
|
ISynchronizationScope getScope()
boolean isInitialized()
void initialize(IProgressMonitor monitor) throws CoreException
This method obtains a lock on the workspace root to avoid workspace changes while calculating the scope.
monitor
- a progress monitor
when building the scopeCoreException
ResourceTraversal[] refresh(ResourceMapping[] mappings, IProgressMonitor monitor) throws CoreException
mappings
- the mappings to be refreshedmonitor
- a progress monitorCoreException
void dispose()
Guidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.