ConfigurationLabelProvider Class Reference

Inheritance diagram for ConfigurationLabelProvider:
Collaboration diagram for ConfigurationLabelProvider:

List of all members.

Public Methods

 ConfigurationLabelProvider (ColumnViewer viewer)
String getColumnText (Object obj, int index)
void setPageProvider (ComponentConfigurationPageProvider pageProvider)
void dispose ()
RenderingHint getTitleHint ()
RenderingHint getSub1Hint ()
RenderingHint getSub2Hint ()
void setRenderingHint (Object key, RenderingHint hint)
void setChainLabels (ExperimentLabel...strings)
void setComponentLabels (ComponentLabel...strings)
void setSignalGroupLabels (SignalGroupLabel...strings)
void setRoleImplLabels (RoleImplLabel...strings)
void setRoleDefLabels (RoleDefinitionLabel...strings)
void setConfigLabels (ConfigurationLabel...strings)
void setTemplateLabels (TemplateLabel...strings)
void setTemplateSetLabels (TemplateSetLabel...strings)
void setDocumentLabels (SpinfoDocumentLabel...strings)
void setSelectionLabels (TeslaDocumentSelectionLabel...strings)
void setDataSourceLabels (DataSourceLabel...strings)
Color getToolTipBackgroundColor (Object object)
String getToolTipText (Object element)
int getToolTipTimeDisplayed (Object object)
Image getToolTipImage (Object object)
int getToolTipDisplayDelayTime (Object object)
int getToolTipStyle (Object object)
Image getImage (Object obj)
void clearRenderingHints ()

Protected Methods

String getLabel (Object object, Object detail, boolean includeLabel)
void erase (Event event, Object element)
void measure (Event event, Object object)
Object[] getLabelValues (Object object)
void paint (Event event, Object element)
Object swapObject (Event event, Object element)
void changeGC (GC gc, RenderingHint hint)

Protected Attributes

Viewer viewer
Map< Object, RenderingHint > hints

Static Protected Attributes

static final Image experimentDefault

Package Attributes

RenderingHint sub1
RenderingHint sub2
static final Image experimentCrashed
static final Image experimentHome
static final Image experimentRunning
static final Image experimentProcessed
static final Image readerDefault
static final Image readerRunning
static final Image readerProcessed
static final Image readerCrashed
static final Image componentDefault
static final Image componentRunning
static final Image componentProcessed
static final Image componentCrashed
static final Image corpus
static final Image roleDef
static final Image roleImpl
static final Image signalGroup
static final Image xml
static final Image document
static final Image selection

Constructors

ConfigurationLabelProvider ( ColumnViewer  viewer)

Method Details

void changeGC ( GC  gc,
RenderingHint  hint 
) [protected, inherited]

Sets the GC to the values given in RenderingHint

Parameters:
gc
hint
void clearRenderingHints ( ) [inherited]
void dispose ( ) [inherited]

Reimplemented in RunningExperimentLabelProvider.

void erase ( Event  event,
Object  element 
) [protected, inherited]
String getColumnText ( Object  obj,
int  index 
)
Image getImage ( Object  obj) [inherited]

Returns the image of the object, or null.

Parameters:
obj
Returns:

Reimplemented in ComponentLabelProvider.

String getLabel ( Object  object,
Object  detail,
boolean  includeLabel 
) [protected]

Returns the label of object. The Object detail must be a "Label" corresponding to object. As example, if object is of Type Component, the detail must be ComponentLabel.

Parameters:
objectThe object of interest
detailWhich detail of the object is requested
includeLabelif true, the returned String will contain detail as leading string.
Returns:
the Label, or null, if no Label could be found.
See also:
LabelUtilities for further information about how labels are created
LabelUtilities.ComponentLabel and other ...Label-Classes defined there for further information about "details".

Reimplemented from TeslaLabelProvider.

Object [] getLabelValues ( Object  object) [protected, inherited]
RenderingHint getSub1Hint ( ) [inherited]

Returns the "default" RenderingHint for the second row of a label.

Returns:
RenderingHint getSub2Hint ( ) [inherited]

Returns the "default" RenderingHint for every other row below the second row of a label.

Returns:
RenderingHint getTitleHint ( ) [inherited]

Returns the "default" RenderingHint for the main label.

Returns:
Color getToolTipBackgroundColor ( Object  object) [inherited]
int getToolTipDisplayDelayTime ( Object  object) [inherited]
Image getToolTipImage ( Object  object) [inherited]
int getToolTipStyle ( Object  object) [inherited]
String getToolTipText ( Object  element) [inherited]

Returns the ToolTip of the given element. Usually, the description of the element is returned.

Reimplemented in ComponentLabelProvider.

int getToolTipTimeDisplayed ( Object  object) [inherited]

Returns 10000

void measure ( Event  event,
Object  object 
) [protected, inherited]
void paint ( Event  event,
Object  element 
) [protected, inherited]
void setChainLabels ( ExperimentLabel...  strings) [inherited]

Sets the labels that will be displayed for any object of class Experiment.

Parameters:
strings
void setComponentLabels ( ComponentLabel...  strings) [inherited]

Sets the labels that will be displayed for any object of class Component.

Parameters:
strings
void setConfigLabels ( ConfigurationLabel...  strings) [inherited]

Sets the labels that will be displayed for any object of class ConfigurationItem.

Parameters:
strings
void setDataSourceLabels ( DataSourceLabel...  strings) [inherited]
void setDocumentLabels ( SpinfoDocumentLabel...  strings) [inherited]
void setPageProvider ( ComponentConfigurationPageProvider  pageProvider)
void setRenderingHint ( Object  key,
RenderingHint  hint 
) [inherited]
void setRoleDefLabels ( RoleDefinitionLabel...  strings) [inherited]

Sets the labels that will be displayed for any object of class RoleDefinition.

Parameters:
strings
void setRoleImplLabels ( RoleImplLabel...  strings) [inherited]

Sets the labels that will be displayed for any object of class RoleImpl.

Parameters:
strings
void setSelectionLabels ( TeslaDocumentSelectionLabel...  strings) [inherited]
void setSignalGroupLabels ( SignalGroupLabel...  strings) [inherited]

Sets the labels that will be displayed for any object of class TeslaDocumentSelection.

Parameters:
strings
void setTemplateLabels ( TemplateLabel...  strings) [inherited]

Sets the labels that will be displayed for any object of class Template.

Parameters:
strings
void setTemplateSetLabels ( TemplateSetLabel...  strings) [inherited]

Sets the labels that will be displayed for any object of class TemplateSet.

Parameters:
strings
Object swapObject ( Event  event,
Object  element 
) [protected, inherited]

Reimplemented in RunningExperimentLabelProvider.


Field Details

final Image componentCrashed [package, inherited]
Initial value:
 TeslaClientCorePlugin.getDefault().createImage(
                                        TeslaClientCorePlugin.IMG_COMP_20_CRASHED)
final Image componentDefault [package, inherited]
Initial value:
 TeslaClientCorePlugin.getDefault().createImage(
                                        TeslaClientCorePlugin.IMG_COMP_20_DEFAULT)
final Image componentProcessed [package, inherited]
Initial value:
 TeslaClientCorePlugin.getDefault().createImage(
                                        TeslaClientCorePlugin.IMG_COMP_20_PROCESSED)
final Image componentRunning [package, inherited]
Initial value:
 TeslaClientCorePlugin.getDefault().createImage(
                                        TeslaClientCorePlugin.IMG_COMP_20_RUNNING)
final Image corpus [package, inherited]
Initial value:
 TeslaClientCorePlugin.getDefault().createImage(
                                        TeslaClientCorePlugin.IMG_CORPUS_20_DEFAULT)
final Image document [package, inherited]
Initial value:
 TeslaClientCorePlugin.getDefault().createImage(
                                        TeslaClientCorePlugin.IMG_DOC_20_DEFAULT)
final Image experimentCrashed [package, inherited]
Initial value:
 TeslaClientCorePlugin.getDefault().createImage(
                                        TeslaClientCorePlugin.IMG_EXP_20_CRASHED)
final Image experimentDefault [static, protected, inherited]
Initial value:
 TeslaClientCorePlugin.getDefault()
                        .createImage(TeslaClientCorePlugin.IMG_EXP_20_DEFAULT)
final Image experimentHome [package, inherited]
Initial value:
 TeslaClientCorePlugin.getDefault().createImage(
                                        TeslaClientCorePlugin.IMG_EXP_20_HOME)
final Image experimentProcessed [package, inherited]
Initial value:
 TeslaClientCorePlugin.getDefault()
                                        .createImage(TeslaClientCorePlugin.IMG_EXP_20_PROCESSED)
final Image experimentRunning [package, inherited]
Initial value:
 TeslaClientCorePlugin.getDefault().createImage(
                                        TeslaClientCorePlugin.IMG_EXP_20_RUNNING)
Map<Object, RenderingHint> hints [protected, inherited]
final Image readerCrashed [package, inherited]
Initial value:
 TeslaClientCorePlugin.getDefault().createImage(
                                        TeslaClientCorePlugin.IMG_READER_20_CRASHED)
final Image readerDefault [package, inherited]
Initial value:
 TeslaClientCorePlugin.getDefault().createImage(
                                        TeslaClientCorePlugin.IMG_READER_20_DEFAULT)
final Image readerProcessed [package, inherited]
Initial value:
 TeslaClientCorePlugin.getDefault().createImage(
                                        TeslaClientCorePlugin.IMG_READER_20_PROCESSED)
final Image readerRunning [package, inherited]
Initial value:
 TeslaClientCorePlugin.getDefault().createImage(
                                        TeslaClientCorePlugin.IMG_READER_20_RUNNING)
final Image roleDef [package, inherited]
Initial value:
 TeslaClientCorePlugin.getDefault().createImage(
                                        TeslaClientCorePlugin.IMG_ROLE_CONS_20_DEFAULT)
final Image roleImpl [package, inherited]
Initial value:
 TeslaClientCorePlugin.getDefault().createImage(
                                        TeslaClientCorePlugin.IMG_ROLE_PROD_20_DEFAULT)
final Image selection [package, inherited]
Initial value:
 TeslaClientCorePlugin.getDefault().createImage(
                                        TeslaClientCorePlugin.IMG_DOC_SEL_20_DEFAULT)
final Image signalGroup [package, inherited]
Initial value:
 TeslaClientCorePlugin.getDefault().createImage(
                                        TeslaClientCorePlugin.IMG_SIGNAL_GROUP)
RenderingHint sub1 [package, inherited]
RenderingHint sub2 [package, inherited]
Viewer viewer [protected, inherited]
final Image xml [package, inherited]
Initial value:
 TeslaClientCorePlugin.getDefault().createImage(
                                        TeslaClientCorePlugin.IMG_XML)