Class UnionSetProperty<S,E>
java.lang.Object
org.eclipse.core.databinding.property.set.SetProperty<S,E>
org.eclipse.core.databinding.property.set.UnionSetProperty<S,E>
- Type Parameters:
S
- type of the source objectE
- type of the elements in the set
- All Implemented Interfaces:
IProperty
,ISetProperty<S,
E>
A set property for observing the union of multiple set properties a combined
set.
- Since:
- 1.2
-
Constructor Summary
ConstructorDescriptionUnionSetProperty
(ISetProperty<S, E>[] properties) UnionSetProperty
(ISetProperty<S, E>[] properties, Object elementType) -
Method Summary
Modifier and TypeMethodDescriptionReturns a Set with the current contents of the source's set propertyprotected void
Updates the property on the source with the specified change.protected void
doUpdateSet
(S source, SetDiff<E> diff) Updates the property on the source with the specified change.Returns the type of the elements in the collection ornull
if untypedReturns an observable set observing this set property on the given property sourceMethods inherited from class org.eclipse.core.databinding.property.set.SetProperty
getSet, observe, observeDetail, setFactory, setFactory, setSet, updateSet, values
-
Constructor Details
-
UnionSetProperty
- Parameters:
properties
- the property sets to unify
-
UnionSetProperty
- Parameters:
properties
- the property sets to unifyelementType
- the element type ornull
-
-
Method Details
-
getElementType
Description copied from interface:ISetProperty
Returns the type of the elements in the collection ornull
if untyped- Returns:
- the type of the elements in the collection or
null
if untyped
-
doGetSet
Description copied from class:SetProperty
Returns a Set with the current contents of the source's set property- Overrides:
doGetSet
in classSetProperty<S,
E> - Parameters:
source
- the property source- Returns:
- a Set with the current contents of the source's set property
-
doSetSet
Description copied from class:SetProperty
Updates the property on the source with the specified change.- Overrides:
doSetSet
in classSetProperty<S,
E> - Parameters:
source
- the property sourceset
- the new set
-
doUpdateSet
Description copied from class:SetProperty
Updates the property on the source with the specified change.- Overrides:
doUpdateSet
in classSetProperty<S,
E> - Parameters:
source
- the property sourcediff
- a diff describing the change
-
observe
Description copied from interface:ISetProperty
Returns an observable set observing this set property on the given property source- Parameters:
realm
- the observable's realmsource
- the property source- Returns:
- an observable set observing this set property on the given property source
-