public class WorkingSetScope extends AbstractSynchronizeScope implements IPropertyChangeListener
Clients are not expected to subclass this class.
NAME, ROOTS| Modifier | Constructor and Description |
|---|---|
protected |
WorkingSetScope(IMemento memento)
Create this scope from it's previously saved state
|
|
WorkingSetScope(IWorkingSet[] sets)
Create the scope for the working sets
|
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Dispose of the scope when it is no longer needed.
|
String |
getName()
Return the name of the scope
|
IResource[] |
getRoots()
Return the root resources that define this scope.
|
protected void |
init(IMemento memento)
Method invoked from the constructor which repopulates the fields of this scope
|
void |
propertyChange(PropertyChangeEvent event)
Notification that a property has changed.
|
void |
saveState(IMemento memento)
Persist the state of this scope.
|
protected void |
setWorkingSets(IWorkingSet[] sets)
Initialize this working set scope with the provided working sets.
|
addPropertyChangeListener, contains, createScope, firePropertyChangedEvent, fireRootsChanges, getMappings, removePropertyChangeListener, saveScopepublic WorkingSetScope(IWorkingSet[] sets)
sets - the working sets that defines this scopeprotected WorkingSetScope(IMemento memento)
memento - the memento containing a previous scope information
that is used to initialize this scope.protected void setWorkingSets(IWorkingSet[] sets)
public String getName()
ISynchronizeScopegetName in interface ISynchronizeScopepublic IResource[] getRoots()
ISynchronizeScopenull indicates that the participant should use
its default set of resources.getRoots in interface ISynchronizeScopenullpublic void propertyChange(PropertyChangeEvent event)
IPropertyChangeListenerThis method gets called when the observed object fires a property change event.
propertyChange in interface IPropertyChangeListenerevent - the property change event object describing which property
changed and howpublic void dispose()
ISynchronizeScopedispose in interface ISynchronizeScopedispose in class AbstractSynchronizeScopepublic void saveState(IMemento memento)
AbstractSynchronizeScopesaveState in class AbstractSynchronizeScopememento - the memento into which the scope is to be savedprotected void init(IMemento memento)
AbstractSynchronizeScopeinit in class AbstractSynchronizeScopememento - the memento into which the scope was previously savedGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.