public class ViewerMisc extends Object
| Constructor and Description |
|---|
ViewerMisc() |
| Modifier and Type | Method and Description |
|---|---|
static <T> RxList<T> |
multiSelectionList(StructuredViewer viewer)
Returns a thread-safe
RxList for manipulating the selection of a StructuredViewer created with SWT.MULTI. |
static <T> void |
multiSelectionList(StructuredViewer viewer,
RxBox<ImmutableList<T>> box) |
static <T> RxSet<T> |
multiSelectionSet(StructuredViewer viewer)
Returns a thread-safe
RxSet for manipulating the selection of a StructuredViewer created with SWT.MULTI. |
static <T> void |
multiSelectionSet(StructuredViewer viewer,
RxBox<ImmutableSet<T>> box)
Manipulates the selection of the given viewer with the given RxSet.
|
static <T> void |
setLazyTreeContentProvider(TreeViewer viewer,
TreeDef.Parented<T> treeDef)
Sets an
ILazyTreeContentProvider implemented by the given TreeDef.Parented. |
static <T> void |
setTreeContentProvider(TreeViewer viewer,
TreeDef.Parented<T> treeDef)
Sets an
ITreeContentProvider implemented by the given TreeDef.Parented. |
static <T> RxOptional<T> |
singleSelection(StructuredViewer viewer)
Returns a thread-safe
RxOptional for manipulating the selection of a StructuredViewer created with SWT.SINGLE. |
static <T> void |
singleSelection(StructuredViewer viewer,
RxBox<Optional<T>> box)
Returns a thread-safe
RxOptional for manipulating the selection of a StructuredViewer created with SWT.SINGLE. |
public static <T> RxOptional<T> singleSelection(StructuredViewer viewer)
RxOptional for manipulating the selection of a StructuredViewer created with SWT.SINGLE.public static <T> void singleSelection(StructuredViewer viewer, RxBox<Optional<T>> box)
RxOptional for manipulating the selection of a StructuredViewer created with SWT.SINGLE.public static <T> RxSet<T> multiSelectionSet(StructuredViewer viewer)
RxSet for manipulating the selection of a StructuredViewer created with SWT.MULTI.public static <T> void multiSelectionSet(StructuredViewer viewer, RxBox<ImmutableSet<T>> box)
public static <T> RxList<T> multiSelectionList(StructuredViewer viewer)
RxList for manipulating the selection of a StructuredViewer created with SWT.MULTI.public static <T> void multiSelectionList(StructuredViewer viewer, RxBox<ImmutableList<T>> box)
public static <T> void setTreeContentProvider(TreeViewer viewer, TreeDef.Parented<T> treeDef)
ITreeContentProvider implemented by the given TreeDef.Parented.public static <T> void setLazyTreeContentProvider(TreeViewer viewer, TreeDef.Parented<T> treeDef)
ILazyTreeContentProvider implemented by the given TreeDef.Parented.