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.
|Constructor and Description|
Creates a new instance of trackable computation
|Modifier and Type||Method and Description|
This method is initially called by the framework when an instance of this class is associated with the context via
Use this method to wrap calls to external code.
public abstract boolean changed(IEclipseContext context)
After the initial call this method is executed when one or more values it retrieved from the context change.
context- modified context
trueto continue to be called on updates;
protected 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.
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.