public abstract class ResourceChangeListenerContribution extends OutlineContribution
IResourceChangeEvent
s.Constructor and Description |
---|
ResourceChangeListenerContribution() |
Modifier and Type | Method and Description |
---|---|
protected abstract boolean |
affects(org.eclipse.core.resources.IResourceChangeEvent event,
java.lang.Object inputElement)
Returns whether the given event affects the outline's input element.
|
void |
dispose()
Disposes of this contribution.
|
void |
init(ICommonOutlinePage outlinePage)
Initializes this contribution.
|
protected abstract void |
resourceChanged(org.eclipse.core.resources.IResourceChangeEvent event)
Notifies that the outline page is affected in some way
by the given resource change event.
|
getOutlinePage
public void init(ICommonOutlinePage outlinePage)
OutlineContribution
This method may be extended by subclasses. Subclasses must call the superclass implementation.
init
in interface IOutlineContribution
init
in class OutlineContribution
outlinePage
- the contribution's outline page
(never null
)public void dispose()
OutlineContribution
init()
has been called.
This method has no effect if this contribution has already
been disposed.
This method may be extended by subclasses. Subclasses must call the superclass implementation.
dispose
in interface IOutlineContribution
dispose
in class OutlineContribution
protected abstract boolean affects(org.eclipse.core.resources.IResourceChangeEvent event, java.lang.Object inputElement)
event
- never null
inputElement
- never null
true
the given event affects the outline's
input element, false
otherwise.protected abstract void resourceChanged(org.eclipse.core.resources.IResourceChangeEvent event)
Note This method may be called in any thread. The event object (and the delta within it) is valid only for the duration of the invocation of this method.
event
- never null