public class WorkingSetScope extends AbstractSynchronizeScope implements IPropertyChangeListener
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 populates 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, saveScope
public 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()
ISynchronizeScope
getName
in interface ISynchronizeScope
public IResource[] getRoots()
ISynchronizeScope
null
indicates that the participant should use
its default set of resources.getRoots
in interface ISynchronizeScope
null
public void propertyChange(PropertyChangeEvent event)
IPropertyChangeListener
This method gets called when the observed object fires a property change event.
propertyChange
in interface IPropertyChangeListener
event
- the property change event object describing which property
changed and howpublic void dispose()
ISynchronizeScope
dispose
in interface ISynchronizeScope
dispose
in class AbstractSynchronizeScope
public void saveState(IMemento memento)
AbstractSynchronizeScope
saveState
in class AbstractSynchronizeScope
memento
- the memento into which the scope is to be savedprotected void init(IMemento memento)
AbstractSynchronizeScope
init
in class AbstractSynchronizeScope
memento
- the memento into which the scope was previously saved
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.