Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.ui.views.data
Interface InstanceViewer

All Known Implementing Classes:
DefinitionInstanceTreeViewer, InstanceExplorer, PopulatedInstanceTreeViewer

public interface InstanceViewer

Interface for Instance viewers based on a Viewer.

Author:
Simon Templer

Method Summary
 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.Viewer getViewer()
          Get the internal tree viewer.
 void setInput(TypeDefinition type, Iterable<Instance> instances)
          Set the input.
 

Method Detail

createControls

void createControls(org.eclipse.swt.widgets.Composite parent,
                    SchemaSpaceID schemaSpace)
Create the viewer controls.

Parameters:
parent - the parent composite
schemaSpace - the represented schema space

setInput

void setInput(TypeDefinition type,
              Iterable<Instance> instances)
Set the input.

Parameters:
type - the type definition
instances - the instances to display

getViewer

org.eclipse.jface.viewers.Viewer getViewer()
Get the internal tree viewer.

Returns:
the tree viewer

getInstanceSelectionProvider

org.eclipse.jface.viewers.ISelectionProvider getInstanceSelectionProvider()
Get the selection provider providing the instance selection.

Returns:
the instance selection provider

getControl

org.eclipse.swt.widgets.Control getControl()
Get the main control

Returns:
the main viewer control

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d