Class WidgetSideEffects
java.lang.Object
org.eclipse.jface.databinding.swt.WidgetSideEffects
A factory for the creation of an
ISideEffectFactory
, which internally
manages the created ISideEffects in an CompositeSideEffect
. The given
Widget is used to attach an DisposeListener
so that all
ISideEffect
objects will be disposed automatically on Widget
disposal.- Since:
- 1.8
-
Method Summary
Modifier and TypeMethodDescriptionstatic ISideEffectFactory
createFactory
(Widget disposableWidget) Creates anISideEffectFactory
which will dispose all createdISideEffect
instances automatically in case the givenWidget
is disposed.
-
Method Details
-
createFactory
Creates anISideEffectFactory
which will dispose all createdISideEffect
instances automatically in case the givenWidget
is disposed.- Parameters:
disposableWidget
-Widget
where a dispose listener will be attached to automatically dispose allISideEffect
instances which have been created by the returnedISideEffectFactory
.- Returns:
- ISideEffectFactory
-