public abstract class AbstractWorkingSetUpdater
extends java.lang.Object
implements org.eclipse.ui.IWorkingSetUpdater
IWorkingSetUpdater
for Handly-based models. Subclasses need to implement a couple
of abstract methods for subscription to change notifications
in the underlying model.Modifier and Type | Class and Description |
---|---|
protected static class |
AbstractWorkingSetUpdater.WorkingSetDelta |
Constructor and Description |
---|
AbstractWorkingSetUpdater()
Creates a new working set updater.
|
Modifier and Type | Method and Description |
---|---|
void |
add(org.eclipse.ui.IWorkingSet workingSet) |
protected abstract void |
addElementChangeListener(IElementChangeListener listener)
Registers the given element change listener with the underlying model.
|
protected void |
checkElementExistence(org.eclipse.ui.IWorkingSet workingSet) |
boolean |
contains(org.eclipse.ui.IWorkingSet workingSet) |
void |
dispose() |
protected IContentAdapter |
getContentAdapter()
Returns the content adapter that defines a mapping between elements
of a Handly based model and the working set's content.
|
protected void |
processElementDelta(IElementDelta delta,
AbstractWorkingSetUpdater.WorkingSetDelta result) |
protected void |
processResourceDelta(org.eclipse.core.resources.IResourceDelta delta,
AbstractWorkingSetUpdater.WorkingSetDelta result) |
boolean |
remove(org.eclipse.ui.IWorkingSet workingSet) |
protected abstract void |
removeElementChangeListener(IElementChangeListener listener)
Removes the given element change listener from the underlying model.
|
public AbstractWorkingSetUpdater()
public void dispose()
dispose
in interface org.eclipse.ui.IWorkingSetUpdater
public void add(org.eclipse.ui.IWorkingSet workingSet)
add
in interface org.eclipse.ui.IWorkingSetUpdater
public boolean remove(org.eclipse.ui.IWorkingSet workingSet)
remove
in interface org.eclipse.ui.IWorkingSetUpdater
public boolean contains(org.eclipse.ui.IWorkingSet workingSet)
contains
in interface org.eclipse.ui.IWorkingSetUpdater
protected abstract void addElementChangeListener(IElementChangeListener listener)
listener
- never null
protected abstract void removeElementChangeListener(IElementChangeListener listener)
listener
- never null
protected IContentAdapter getContentAdapter()
Default implementation returns a NullContentAdapter
.
Subclasses may override.
IContentAdapter
(never null
)protected void processElementDelta(IElementDelta delta, AbstractWorkingSetUpdater.WorkingSetDelta result)
protected void processResourceDelta(org.eclipse.core.resources.IResourceDelta delta, AbstractWorkingSetUpdater.WorkingSetDelta result)
protected void checkElementExistence(org.eclipse.ui.IWorkingSet workingSet)