Class WidgetSideEffects
- java.lang.Object
-
- org.eclipse.jface.databinding.swt.WidgetSideEffects
-
public final class WidgetSideEffects extends Object
A factory for the creation of anISideEffectFactory, which internally manages the created ISideEffects in anCompositeSideEffect. The given Widget is used to attach anDisposeListenerso that allISideEffectobjects will be disposed automatically on Widget disposal.- Since:
- 1.8
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.eclipse.core.databinding.observable.sideeffect.ISideEffectFactorycreateFactory(Widget disposableWidget)Creates anISideEffectFactorywhich will dispose all createdISideEffectinstances automatically in case the givenWidgetis disposed.
-
-
-
Method Detail
-
createFactory
public static org.eclipse.core.databinding.observable.sideeffect.ISideEffectFactory createFactory(Widget disposableWidget)
Creates anISideEffectFactorywhich will dispose all createdISideEffectinstances automatically in case the givenWidgetis disposed.- Parameters:
disposableWidget-Widgetwhere a dispose listener will be attached to automatically dispose allISideEffectinstances which have been created by the returnedISideEffectFactory.- Returns:
- ISideEffectFactory
-
-