public class ObservablesManager extends Object
IObservable
objects.Constructor and Description |
---|
ObservablesManager()
Create a new observables manager.
|
Modifier and Type | Method and Description |
---|---|
void |
addObservable(IObservable observable)
Adds the given observable to this manager.
|
void |
addObservablesFromContext(DataBindingContext context,
boolean trackTargets,
boolean trackModels)
Adds the given data binding context's target and/or model observables to
this manager.
|
void |
dispose()
Disposes of this manager and all observables that it manages.
|
void |
excludeObservable(IObservable observable)
Adds the given observable to this manager's exclusion list.
|
void |
runAndCollect(Runnable runnable)
Executes the specified runnable and adds to this manager all observables
created while executing the runnable.
|
public void addObservable(IObservable observable)
observable
- the observablepublic void excludeObservable(IObservable observable)
observable
- the observablepublic void addObservablesFromContext(DataBindingContext context, boolean trackTargets, boolean trackModels)
context
- the data binding contexttrackTargets
- true
if the target observables of the context
should be managedtrackModels
- true
if the model observables of the context
should be managedpublic void runAndCollect(Runnable runnable)
NOTE: As of 1.2 (Eclipse 3.5), there are unresolved problems with this API, see bug 278550. If we cannot find a way to make this API work, it will be deprecated as of 3.6.
runnable
- the runnable to executepublic void dispose()
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.