Package com.diffplug.common.swt.jface
Class ViewerMisc
java.lang.Object
com.diffplug.common.swt.jface.ViewerMisc
Utilities for manipulating and creating JFace viewers.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> RxBox<ImmutableList<T>>
multiSelectionList
(StructuredViewer viewer) Returns a thread-safe `RxBox` for manipulating the selection of a StructuredViewer
created withSWT.MULTI
.static <T> void
multiSelectionList
(StructuredViewer viewer, RxBox<ImmutableList<T>> box) static <T> RxBox<ImmutableSet<T>>
multiSelectionSet
(StructuredViewer viewer) Returns a thread-safe `RxBox` for manipulating the selection of a StructuredViewer
created withSWT.MULTI
.static <T> void
multiSelectionSet
(StructuredViewer viewer, RxBox<ImmutableSet<T>> box) Manipulates the selection of the given viewer with the given `RxBox`. static <T> void
setLazyTreeContentProvider
(TreeViewer viewer, TreeDef.Parented<T> treeDef) Sets anILazyTreeContentProvider
implemented by the givenTreeDef.Parented
.static <T> void
setTreeContentProvider
(TreeViewer viewer, TreeDef.Parented<T> treeDef) Sets anITreeContentProvider
implemented by the givenTreeDef.Parented
.singleSelection
(StructuredViewer viewer) Returns a thread-safe `RxBox` for manipulating the selection of a StructuredViewer
created withSWT.SINGLE
.static <T> void
singleSelection
(StructuredViewer viewer, RxBox<Optional<T>> box) Returns a thread-safe `RxBox` for manipulating the selection of a StructuredViewer
created withSWT.SINGLE
.
-
Constructor Details
-
ViewerMisc
public ViewerMisc()
-
-
Method Details
-
singleSelection
Returns a thread-safe `RxBox` for manipulating the selection of a StructuredViewer
created withSWT.SINGLE
. -
singleSelection
Returns a thread-safe `RxBox` for manipulating the selection of a StructuredViewer
created withSWT.SINGLE
. -
multiSelectionSet
Returns a thread-safe `RxBox` for manipulating the selection of a StructuredViewer
created withSWT.MULTI
. -
multiSelectionSet
Manipulates the selection of the given viewer with the given `RxBox`. -
multiSelectionList
Returns a thread-safe `RxBox` for manipulating the selection of a StructuredViewer
created withSWT.MULTI
. -
multiSelectionList
-
setTreeContentProvider
Sets anITreeContentProvider
implemented by the givenTreeDef.Parented
. -
setLazyTreeContentProvider
Sets anILazyTreeContentProvider
implemented by the givenTreeDef.Parented
.
-