public abstract class AbstractSynchronizeScope extends Object implements ISynchronizeScope
SubscriberParticipant
instances.SubscriberParticipant
NAME, ROOTS
Modifier | Constructor and Description |
---|---|
protected |
AbstractSynchronizeScope()
Constructor a scope from scratch
|
protected |
AbstractSynchronizeScope(IMemento memento)
Constructor a scope from a previously saved state
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(IPropertyChangeListener listener)
Add a property change listener that will get invoked when a
property of the receiver changes.
|
boolean |
contains(IResource resource)
Return whether the given resource is within this scope.
|
protected static ISynchronizeScope |
createScope(IMemento settings)
Restore a scope from the given memento
|
void |
dispose()
Dispose of the scope when it is no longer needed.
|
protected void |
firePropertyChangedEvent(PropertyChangeEvent event)
Fires the given property change event to all registered listeners.
|
protected void |
fireRootsChanges()
Fires a change event for property
ISynchronizeScope.ROOTS
containing the new roots. |
ResourceMapping[] |
getMappings()
Return the resource mappings that define this scope.
|
protected void |
init(IMemento memento)
Method invoked from the constructor which populates the fields of this scope
|
void |
removePropertyChangeListener(IPropertyChangeListener listener)
Remove a property change listener.
|
protected static void |
saveScope(ISynchronizeScope scope,
IMemento settings)
Save the scope to the given memento
|
void |
saveState(IMemento memento)
Persist the state of this scope.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName, getRoots
protected AbstractSynchronizeScope()
protected AbstractSynchronizeScope(IMemento memento)
protected static void saveScope(ISynchronizeScope scope, IMemento settings)
scope
- a scopesettings
- a mementoprotected static ISynchronizeScope createScope(IMemento settings)
settings
- a mementopublic void addPropertyChangeListener(IPropertyChangeListener listener)
ISynchronizeScope
addPropertyChangeListener
in interface ISynchronizeScope
public void removePropertyChangeListener(IPropertyChangeListener listener)
ISynchronizeScope
removePropertyChangeListener
in interface ISynchronizeScope
public void dispose()
ISynchronizeScope
dispose
in interface ISynchronizeScope
protected void firePropertyChangedEvent(PropertyChangeEvent event)
event
- the property change event to be firedprotected void fireRootsChanges()
ISynchronizeScope.ROOTS
containing the new roots. The old roots are not provided in the event.public void saveState(IMemento memento)
memento
- the memento into which the scope is to be savedprotected void init(IMemento memento)
memento
- the memento into which the scope was previously savedpublic boolean contains(IResource resource)
resource
- the resourcepublic ResourceMapping[] getMappings()
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.