public class ProblemMarkerListenerContribution extends ResourceChangeListenerContribution
Constructor and Description |
---|
ProblemMarkerListenerContribution() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
affects(org.eclipse.core.resources.IResourceChangeEvent event,
java.lang.Object inputElement)
Returns whether the given event affects the outline's input element.
|
protected IContentAdapter |
getContentAdapter()
Returns the installed content adapter, or a
NullContentAdapter
if none. |
protected boolean |
hasProblemMarkerChanges(org.eclipse.core.resources.IResourceDelta delta)
Returns whether the given resource delta describes problem marker changes.
|
protected void |
resourceChanged(org.eclipse.core.resources.IResourceChangeEvent event)
Notifies that the outline page is affected in some way
by the given resource change event.
|
dispose, init
getOutlinePage
protected void resourceChanged(org.eclipse.core.resources.IResourceChangeEvent event)
ResourceChangeListenerContribution
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.
resourceChanged
in class ResourceChangeListenerContribution
event
- never null
protected boolean affects(org.eclipse.core.resources.IResourceChangeEvent event, java.lang.Object inputElement)
ResourceChangeListenerContribution
affects
in class ResourceChangeListenerContribution
event
- never null
inputElement
- never null
true
the given event affects the outline's
input element, false
otherwise.protected boolean hasProblemMarkerChanges(org.eclipse.core.resources.IResourceDelta delta)
delta
- the resource delta (never null
)true
if the given resource delta describes
problem marker changes, false
otherwiseprotected IContentAdapter getContentAdapter()
NullContentAdapter
if none.IContentAdapter
(never null
)