public class DefinitionInstanceTreeViewer extends Object implements InstanceViewer
Instance
s of a common type, based on the
corresponding TypeDefinition
Constructor and Description |
---|
DefinitionInstanceTreeViewer() |
Modifier and Type | Method and Description |
---|---|
void |
createControls(org.eclipse.swt.widgets.Composite parent,
SchemaSpaceID schemaSpace)
Create the viewer controls.
|
org.eclipse.swt.widgets.Control |
getControl()
Get the main control
|
org.eclipse.jface.viewers.ISelectionProvider |
getInstanceSelectionProvider()
Get the selection provider providing the instance selection.
|
org.eclipse.jface.viewers.TreeViewer |
getViewer()
Get the internal tree viewer.
|
void |
setInput(TypeDefinition type,
Iterable<Instance> instances)
Set the input.
|
public void createControls(org.eclipse.swt.widgets.Composite parent, SchemaSpaceID schemaSpace)
InstanceViewer
createControls
in interface InstanceViewer
parent
- the parent compositeschemaSpace
- the represented schema spaceInstanceViewer.createControls(Composite, SchemaSpaceID)
public void setInput(TypeDefinition type, Iterable<Instance> instances)
InstanceViewer
setInput
in interface InstanceViewer
type
- the type definitioninstances
- the instances to displayInstanceViewer.setInput(TypeDefinition, Iterable)
public org.eclipse.jface.viewers.TreeViewer getViewer()
InstanceViewer
getViewer
in interface InstanceViewer
InstanceViewer.getViewer()
public org.eclipse.swt.widgets.Control getControl()
InstanceViewer
getControl
in interface InstanceViewer
InstanceViewer.getControl()
public org.eclipse.jface.viewers.ISelectionProvider getInstanceSelectionProvider()
InstanceViewer
getInstanceSelectionProvider
in interface InstanceViewer
InstanceViewer.getInstanceSelectionProvider()
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a