1 /*******************************************************************************
2  * Copyright (c) 2009, 2015 Matthew Hall and others.
3  *
4  * This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License 2.0
6  * which accompanies this distribution, and is available at
7  * https://www.eclipse.org/legal/epl-2.0/
8  *
9  * SPDX-License-Identifier: EPL-2.0
10  *
11  * Contributors:
12  *     Matthew Hall - initial API and implementation (bug 264286)
13  *******************************************************************************/
14 
15 package org.eclipse.jface.databinding.swt;
16 
17 import org.eclipse.core.databinding.property.list.IListProperty;
18 import org.eclipse.swt.widgets.Widget;
19 
20 /**
21  * {@link IListProperty} for observing an SWT Widget
22  *
23  * @param <S>
24  *            type of the source object
25  * @param <E>
26  *            type of the elements in the list
27  *
28  * @since 1.3
29  * @noimplement This interface is not intended to be implemented by clients.
30  */
31 public interface IWidgetListProperty<S extends Widget, E> extends IListProperty<S, E> {
32 	/**
33 	 * Returns an {@link ISWTObservableList} observing this list property on the
34 	 * given widget
35 	 *
36 	 * @param widget
37 	 *            the source widget
38 	 * @return an observable list observing this list property on the given
39 	 *         widget
40 	 */
41 	@Override
observe(S widget)42 	public ISWTObservableList<E> observe(S widget);
43 }
44