Package org.eclipse.team.ui.synchronize
Class ResourceScope
java.lang.Object
org.eclipse.team.ui.synchronize.AbstractSynchronizeScope
org.eclipse.team.ui.synchronize.ResourceScope
- All Implemented Interfaces:
ISynchronizeScope
A synchronize scope whose roots are a set of resources.
- Since:
- 3.0
- Restriction:
- This class is not intended to be subclassed by clients.
-
Field Summary
Fields inherited from interface org.eclipse.team.ui.synchronize.ISynchronizeScope
NAME, ROOTS -
Constructor Summary
ConstructorsModifierConstructorDescriptionResourceScope(IResource[] resources) Create the resource scope for the given resourcesprotectedResourceScope(IMemento memento) Create this scope from it's previously saved state -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Dispose of the scope when it is no longer needed.getName()Return the name of the scopegetRoots()Return the root resources that define this scope.protected voidMethod invoked from the constructor which populates the fields of this scopevoidPersist the state of this scope.voidsetResources(IResource[] resources) Set the resources that define this scopeMethods inherited from class org.eclipse.team.ui.synchronize.AbstractSynchronizeScope
addPropertyChangeListener, contains, createScope, firePropertyChangedEvent, fireRootsChanges, getMappings, removePropertyChangeListener, saveScope
-
Constructor Details
-
ResourceScope
Create the resource scope for the given resources- Parameters:
resources- the resources that define this scope
-
ResourceScope
Create this scope from it's previously saved state- Parameters:
memento- persisted state that can be restored
-
-
Method Details
-
setResources
Set the resources that define this scope- Parameters:
resources- the resources that define this scope
-
getName
Description copied from interface:ISynchronizeScopeReturn the name of the scope- Returns:
- the name of the scope
-
getRoots
Description copied from interface:ISynchronizeScopeReturn the root resources that define this scope. A return value ofnullindicates that the participant should use its default set of resources.- Returns:
- the root resources or
null
-
dispose
public void dispose()Description copied from interface:ISynchronizeScopeDispose of the scope when it is no longer needed.- Specified by:
disposein interfaceISynchronizeScope- Overrides:
disposein classAbstractSynchronizeScope
-
saveState
Description copied from class:AbstractSynchronizeScopePersist the state of this scope. Clients must persist enough additional state to know what type (i.e. subclass) of scope to be recreated.- Overrides:
saveStatein classAbstractSynchronizeScope- Parameters:
memento- the memento into which the scope is to be saved
-
init
Description copied from class:AbstractSynchronizeScopeMethod invoked from the constructor which populates the fields of this scope- Overrides:
initin classAbstractSynchronizeScope- Parameters:
memento- the memento into which the scope was previously saved
-