78
|
1 /*******************************************************************************
|
|
2 * Copyright (c) 2005, 2008 IBM Corporation and others.
|
|
3 * All rights reserved. This program and the accompanying materials
|
|
4 * are made available under the terms of the Eclipse Public License v1.0
|
|
5 * which accompanies this distribution, and is available at
|
|
6 * http://www.eclipse.org/legal/epl-v10.html
|
|
7 *
|
|
8 * Contributors:
|
|
9 * IBM Corporation - initial API and implementation
|
|
10 * Brad Reynolds - bug 137877
|
|
11 * Brad Reynolds - bug 164653
|
|
12 * Brad Reynolds - bug 147515
|
|
13 * Ashley Cambrell - bug 198906
|
|
14 *******************************************************************************/
|
|
15
|
|
16 module org.eclipse.jface.internal.databinding.viewers.ViewerSingleSelectionObservableValue;
|
|
17
|
|
18 import java.lang.all;
|
|
19
|
|
20 import org.eclipse.core.databinding.observable.Realm;
|
|
21 import org.eclipse.jface.databinding.viewers.IViewerObservableValue;
|
|
22 import org.eclipse.jface.viewers.Viewer;
|
|
23
|
|
24 /**
|
|
25 * Observes single selection of a <code>Viewer</code>.
|
|
26 *
|
|
27 * @since 1.2
|
|
28 */
|
|
29 public class ViewerSingleSelectionObservableValue :
|
|
30 SelectionProviderSingleSelectionObservableValue ,
|
|
31 IViewerObservableValue {
|
|
32
|
|
33 private Viewer viewer;
|
|
34
|
|
35 /**
|
|
36 * @param realm
|
|
37 * @param viewer
|
|
38 */
|
|
39 public this(Realm realm, Viewer viewer) {
|
|
40 super(realm, viewer);
|
|
41 this.viewer = viewer;
|
|
42 }
|
|
43
|
|
44 public Viewer getViewer() {
|
|
45 return viewer;
|
|
46 }
|
|
47 }
|