01: /*******************************************************************************
02: * Copyright (c) 2007 IBM Corporation 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: * IBM Corporation - 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.IObservableCollection;
14: import org.eclipse.core.databinding.observable.Realm;
15:
16: /**
17: * Abstract implementation of {@link IObservableCollectionContractDelegate}.
18: *
19: * @since 3.2
20: */
21: public abstract class AbstractObservableCollectionContractDelegate
22: extends AbstractObservableContractDelegate implements
23: IObservableCollectionContractDelegate {
24:
25: /**
26: * Invokes {@link #createObservableCollection(Realm, elementCount)}.
27: */
28: public final IObservable createObservable(Realm realm) {
29: return createObservableCollection(realm, 0);
30: }
31:
32: public Object createElement(IObservableCollection collection) {
33: //no op
34: return null;
35: }
36:
37: public Object getElementType(IObservableCollection collection) {
38: //no op
39: return null;
40: }
41: }
|