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: import org.eclipse.core.databinding.observable.value.IObservableValue;
15:
16: /**
17: * Abstract implementation of {@link IObservableValueContractDelegate}.
18: *
19: * @since 1.1
20: */
21: public abstract class AbstractObservableValueContractDelegate extends
22: AbstractObservableContractDelegate implements
23: IObservableValueContractDelegate {
24:
25: /**
26: * Invokes {@link #createObservableValue(Realm)}.
27: */
28: public final IObservable createObservable(Realm realm) {
29: return createObservableValue(realm);
30: }
31:
32: /**
33: * Default implementation returns <code>null</code>.
34: */
35: public Object getValueType(IObservableValue observable) {
36: // no op
37: return null;
38: }
39:
40: /**
41: * Default implementation returns <code>null</code>.
42: */
43: public Object createValue(IObservableValue observable) {
44: //no op
45: return null;
46: }
47: }
|