public abstract class RunAndTrack extends Object
IEclipseContext
. The context records all values accessed by this
object, and will re-evaluate this runnable whenever any accessed value changes.IEclipseContext.runAndTrack(RunAndTrack)
Constructor and Description |
---|
RunAndTrack()
Creates a new instance of trackable computation
|
Modifier and Type | Method and Description |
---|---|
abstract boolean |
changed(IEclipseContext context)
This method is initially called by the framework when an instance of this
class is associated with the context via
IEclipseContext.runAndTrack(RunAndTrack) . |
protected void |
runExternalCode(Runnable runnable)
Use this method to wrap calls to external code.
|
public abstract boolean changed(IEclipseContext context)
IEclipseContext.runAndTrack(RunAndTrack)
.
After the initial call this method is executed when one or more values it retrieved from the context change.
context
- modified contexttrue
to continue to be called on updates; false
otherwiseprotected void runExternalCode(Runnable runnable)
changed(IEclipseContext)
.
consider calling listeners from this method. This wrapper will pause dependency recording while
in the 3rd party code, reducing potential dependency circularity issues.runnable
-
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.