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