public class ViewerSupport extends Object
StructuredViewer
or
AbstractTableViewer
.Constructor and Description |
---|
ViewerSupport() |
Modifier and Type | Method and Description |
---|---|
static void |
bind(AbstractTreeViewer viewer,
Object input,
IListProperty childrenProperty,
IValueProperty labelProperty)
Binds the viewer to the specified input, using the specified children
property to generate child nodes, and the specified label property to
generate labels.
|
static void |
bind(AbstractTreeViewer viewer,
Object input,
IListProperty childrenProperty,
IValueProperty[] labelProperties)
Binds the viewer to the specified input, using the specified children
property to generate child nodes, and the specified label properties to
generate labels.
|
static void |
bind(AbstractTreeViewer viewer,
Object input,
ISetProperty childrenProperty,
IValueProperty labelProperty)
Binds the viewer to the specified input, using the specified children
property to generate child nodes, and the specified label property to
generate labels.
|
static void |
bind(AbstractTreeViewer viewer,
Object input,
ISetProperty childrenProperty,
IValueProperty[] labelProperties)
Binds the viewer to the specified input, using the specified children
property to generate child nodes, and the specified label properties to
generate labels.
|
static void |
bind(StructuredViewer viewer,
IObservableList input,
IValueProperty labelProperty)
Binds the viewer to the specified input, using the specified label
property to generate labels.
|
static void |
bind(StructuredViewer viewer,
IObservableList input,
IValueProperty[] labelProperties)
Binds the viewer to the specified input, using the specified label
properties to generate labels.
|
static void |
bind(StructuredViewer viewer,
IObservableSet input,
IValueProperty labelProperty)
Binds the viewer to the specified input, using the specified label
property to generate labels.
|
static void |
bind(StructuredViewer viewer,
IObservableSet input,
IValueProperty[] labelProperties)
Binds the viewer to the specified input, using the specified label
properties to generate labels.
|
public static void bind(StructuredViewer viewer, IObservableList input, IValueProperty labelProperty)
viewer
- the viewer to set upinput
- the input to set on the viewerlabelProperty
- the property to use for labelspublic static void bind(StructuredViewer viewer, IObservableList input, IValueProperty[] labelProperties)
viewer
- the viewer to set upinput
- the input to set on the viewerlabelProperties
- the respective properties to use for labels in each of the
viewer's columnspublic static void bind(StructuredViewer viewer, IObservableSet input, IValueProperty labelProperty)
viewer
- the viewer to set upinput
- the input to set on the viewerlabelProperty
- the property to use for labelspublic static void bind(StructuredViewer viewer, IObservableSet input, IValueProperty[] labelProperties)
viewer
- the viewer to set upinput
- the input to set on the viewerlabelProperties
- the respective properties to use for labels in each of the
viewer's columnspublic static void bind(AbstractTreeViewer viewer, Object input, IListProperty childrenProperty, IValueProperty labelProperty)
viewer
- the tree viewer to set upinput
- the input to set on the viewerchildrenProperty
- the property to use as the children of an elementlabelProperty
- the property to use for labelspublic static void bind(AbstractTreeViewer viewer, Object input, IListProperty childrenProperty, IValueProperty[] labelProperties)
viewer
- the tree viewer to set upinput
- the input to set on the viewerchildrenProperty
- the property to use as the children of an elementlabelProperties
- the respective properties to use for labels in each of the
viewer's columnspublic static void bind(AbstractTreeViewer viewer, Object input, ISetProperty childrenProperty, IValueProperty labelProperty)
viewer
- the tree viewer to set upinput
- the input to set on the viewerchildrenProperty
- the property to use as the children of an elementlabelProperty
- the property to use for labelspublic static void bind(AbstractTreeViewer viewer, Object input, ISetProperty childrenProperty, IValueProperty[] labelProperties)
viewer
- the tree viewer to set upinput
- the input to set on the viewerchildrenProperty
- the property to use as the children of an elementlabelProperties
- the respective properties to use for labels in each of the
viewer's columns
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.