Class ViewerSetProperty<S,E>
- java.lang.Object
-
- org.eclipse.core.databinding.property.set.SetProperty<S,E>
-
- org.eclipse.core.databinding.property.set.SimpleSetProperty<S,E>
-
- org.eclipse.jface.databinding.viewers.ViewerSetProperty<S,E>
-
- Type Parameters:
S
- type of the source objectE
- type of the elements in the set
- All Implemented Interfaces:
IProperty
,ISetProperty<S,E>
,IViewerSetProperty<S,E>
public abstract class ViewerSetProperty<S,E> extends SimpleSetProperty<S,E> implements IViewerSetProperty<S,E>
Abstract set property implementation forViewer
properties. This class implements some basic behavior that viewer properties are generally expected to have, namely:- Calling
observe(S)
should create the observable on the display realm of the viewer's control, rather than the current default realm - All
observe()
methods should return anIViewerObservableSet
- Since:
- 1.3
-
-
Constructor Summary
Constructors Constructor Description ViewerSetProperty()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IObservableSet<E>
observe(Realm realm, S source)
Returns an observable set observing this set property on the given property sourceIViewerObservableSet<E>
observe(Viewer viewer)
Returns anIViewerObservableSet
observing this set property on the given viewerIObservableSet<E>
observe(S source)
Returns an observable set observing this set property on the given property source-
Methods inherited from class org.eclipse.core.databinding.property.set.SimpleSetProperty
adaptListener, doGetSet, doSetSet, doSetSet, doUpdateSet, setSet
-
Methods inherited from class org.eclipse.core.databinding.property.set.SetProperty
getSet, observeDetail, setFactory, setFactory, setSet, updateSet, values
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.core.databinding.property.set.ISetProperty
getElementType, getSet, observeDetail, setFactory, setFactory, setSet, updateSet, values
-
-
-
-
Method Detail
-
observe
public IObservableSet<E> observe(S source)
Description copied from interface:ISetProperty
Returns an observable set observing this set property on the given property source- Specified by:
observe
in interfaceISetProperty<S,E>
- Specified by:
observe
in interfaceIViewerSetProperty<S,E>
- Overrides:
observe
in classSetProperty<S,E>
- Parameters:
source
- the property source- Returns:
- an observable set observing this set property on the given property source
-
observe
public IObservableSet<E> observe(Realm realm, S source)
Description copied from interface:ISetProperty
Returns an observable set observing this set property on the given property source- Specified by:
observe
in interfaceISetProperty<S,E>
- Overrides:
observe
in classSimpleSetProperty<S,E>
- Parameters:
realm
- the observable's realmsource
- the property source- Returns:
- an observable set observing this set property on the given property source
-
observe
public IViewerObservableSet<E> observe(Viewer viewer)
Description copied from interface:IViewerSetProperty
Returns anIViewerObservableSet
observing this set property on the given viewer- Specified by:
observe
in interfaceIViewerSetProperty<S,E>
- Parameters:
viewer
- the source viewer- Returns:
- an observable set observing this set property on the given viewer
-
-