Package org.eclipse.team.ui.synchronize
Class WorkingSetScope
java.lang.Object
org.eclipse.team.ui.synchronize.AbstractSynchronizeScope
org.eclipse.team.ui.synchronize.WorkingSetScope
- All Implemented Interfaces:
EventListener
,IPropertyChangeListener
,ISynchronizeScope
A synchronize scope whose roots are defined by a working set.
- 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
ModifierConstructorDescriptionprotected
WorkingSetScope
(IMemento memento) Create this scope from it's previously saved stateWorkingSetScope
(IWorkingSet[] sets) Create the scope for the working sets -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
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 void
Method invoked from the constructor which populates the fields of this scopevoid
Notification that a property has changed.void
Persist the state of this scope.protected void
setWorkingSets
(IWorkingSet[] sets) Initialize this working set scope with the provided working sets.Methods inherited from class org.eclipse.team.ui.synchronize.AbstractSynchronizeScope
addPropertyChangeListener, contains, createScope, firePropertyChangedEvent, fireRootsChanges, getMappings, removePropertyChangeListener, saveScope
-
Constructor Details
-
WorkingSetScope
Create the scope for the working sets- Parameters:
sets
- the working sets that defines this scope
-
WorkingSetScope
Create this scope from it's previously saved state- Parameters:
memento
- the memento containing a previous scope information that is used to initialize this scope.
-
-
Method Details
-
setWorkingSets
Initialize this working set scope with the provided working sets.- Since:
- 3.1
-
getName
Description copied from interface:ISynchronizeScope
Return the name of the scope- Specified by:
getName
in interfaceISynchronizeScope
- Returns:
- the name of the scope
-
getRoots
Description copied from interface:ISynchronizeScope
Return the root resources that define this scope. A return value ofnull
indicates that the participant should use its default set of resources.- Specified by:
getRoots
in interfaceISynchronizeScope
- Returns:
- the root resources or
null
-
propertyChange
Description copied from interface:IPropertyChangeListener
Notification that a property has changed.This method gets called when the observed object fires a property change event.
- Specified by:
propertyChange
in interfaceIPropertyChangeListener
- Parameters:
event
- the property change event object describing which property changed and how
-
dispose
public void dispose()Description copied from interface:ISynchronizeScope
Dispose of the scope when it is no longer needed.- Specified by:
dispose
in interfaceISynchronizeScope
- Overrides:
dispose
in classAbstractSynchronizeScope
-
saveState
Description copied from class:AbstractSynchronizeScope
Persist the state of this scope. Clients must persist enough additional state to know what type (i.e. subclass) of scope to be recreated.- Overrides:
saveState
in classAbstractSynchronizeScope
- Parameters:
memento
- the memento into which the scope is to be saved
-
init
Description copied from class:AbstractSynchronizeScope
Method invoked from the constructor which populates the fields of this scope- Overrides:
init
in classAbstractSynchronizeScope
- Parameters:
memento
- the memento into which the scope was previously saved
-