public class ViewerMisc extends Object
Constructor and Description |
---|
ViewerMisc() |
Modifier and Type | Method and Description |
---|---|
static <T> com.diffplug.common.rx.RxBox<ImmutableList<T>> |
multiSelectionList(StructuredViewer viewer)
Returns a thread-safe `RxBox
StructuredViewer created with SWT.MULTI . |
static <T> void |
multiSelectionList(StructuredViewer viewer,
com.diffplug.common.rx.RxBox<ImmutableList<T>> box) |
static <T> com.diffplug.common.rx.RxBox<ImmutableSet<T>> |
multiSelectionSet(StructuredViewer viewer)
Returns a thread-safe `RxBox
StructuredViewer created with SWT.MULTI . |
static <T> void |
multiSelectionSet(StructuredViewer viewer,
com.diffplug.common.rx.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 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> com.diffplug.common.rx.RxBox<Optional<T>> |
singleSelection(StructuredViewer viewer)
Returns a thread-safe `RxBox
StructuredViewer created with SWT.SINGLE . |
static <T> void |
singleSelection(StructuredViewer viewer,
com.diffplug.common.rx.RxBox<Optional<T>> box)
Returns a thread-safe `RxBox
StructuredViewer created with SWT.SINGLE . |
public static <T> com.diffplug.common.rx.RxBox<Optional<T>> singleSelection(StructuredViewer viewer)
StructuredViewer
created with SWT.SINGLE
.public static <T> void singleSelection(StructuredViewer viewer, com.diffplug.common.rx.RxBox<Optional<T>> box)
StructuredViewer
created with SWT.SINGLE
.public static <T> com.diffplug.common.rx.RxBox<ImmutableSet<T>> multiSelectionSet(StructuredViewer viewer)
StructuredViewer
created with SWT.MULTI
.public static <T> void multiSelectionSet(StructuredViewer viewer, com.diffplug.common.rx.RxBox<ImmutableSet<T>> box)
public static <T> com.diffplug.common.rx.RxBox<ImmutableList<T>> multiSelectionList(StructuredViewer viewer)
StructuredViewer
created with SWT.MULTI
.public static <T> void multiSelectionList(StructuredViewer viewer, com.diffplug.common.rx.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
.