01: /*******************************************************************************
02: * Copyright (c) 2007 Brad Reynolds and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * Brad Reynolds - initial API and implementation
10: ******************************************************************************/package org.eclipse.jface.conformance.databinding;
11:
12: import org.eclipse.core.databinding.observable.IObservable;
13: import org.eclipse.core.databinding.observable.Realm;
14:
15: /**
16: * Delegate interface for observables.
17: *
18: * <p>
19: * This interface is not intended to be implemented by clients. Clients should
20: * instead subclass one of the classes that implement this interface. Note that
21: * direct implementers of this interface outside of the framework will be broken
22: * in future releases when methods are added to this interface.
23: * </p>
24: *
25: * @since 1.1
26: */
27: public interface IObservableContractDelegate {
28: /**
29: * Notifies the delegate of the start of a test.
30: */
31: public void setUp();
32:
33: /**
34: * Notifies the delegate of the end of a test.
35: */
36: public void tearDown();
37:
38: /**
39: * Invokes an operation to set the stale state of the provided
40: * <code>observable</code>.
41: *
42: * @param observable
43: * @param stale
44: */
45: public void setStale(IObservable observable, boolean stale);
46:
47: /**
48: * Creates a new observable.
49: *
50: * @param realm realm of the observable
51: * @return observable
52: */
53: public IObservable createObservable(Realm realm);
54:
55: /**
56: * Invokes a change operation on the observable resulting in a change event
57: * being fired from the observable.
58: *
59: * @param observable
60: */
61: public void change(IObservable observable);
62: }
|