Eclipse Platform
Release 3.3

org.eclipse.core.databinding
Class ObservablesManager

java.lang.Object
  extended byorg.eclipse.core.databinding.ObservablesManager

public class ObservablesManager
extends Object

An observables manager can be used for lifecycle management of IObservable objects. This class is not intended to be extended by clients.

Since:
1.0

Constructor Summary
ObservablesManager()
          Create a new observables manager.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObservablesManager

public ObservablesManager()
Create a new observables manager.

Method Detail

addObservable

public void addObservable(IObservable observable)
Adds the given observable to this manager.

Parameters:
observable - the observable

excludeObservable

public void excludeObservable(IObservable observable)
Adds the given observable to this manager's exclusion list. The given observable will not be disposed of by this manager.

Parameters:
observable - the observable

addObservablesFromContext

public void addObservablesFromContext(DataBindingContext context,
                                      boolean trackTargets,
                                      boolean trackModels)
Adds the given data binding context's target and/or model observables to this manager.

Parameters:
context - the data binding context
trackTargets - true if the target observables of the context should be managed
trackModels - true if the model observables of the context should be managed

dispose

public void dispose()
Disposes of this manager and all observables that it manages.


Eclipse Platform
Release 3.3

Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp. and others 2000, 2007. All rights reserved.