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 resource change 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)
This method may be extended by subclasses. Subclasses must call the superclass implementation.
ResourceChangeListenerContribution
extends this method
to register a resource change listener that invokes resourceChanged(IResourceChangeEvent)
if the resource change event
affects
the outline's
input element.
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
if the given resource change event affects
the outline's input element, and false
otherwiseprotected 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
Copyright (c) 2014, 2020 1C-Soft LLC and others. Made available under the Eclipse Public License 2.0