public abstract class MarkerField extends Object
Constructor and Description |
---|
MarkerField() |
Modifier and Type | Method and Description |
---|---|
Image |
annotateImage(MarkerItem item,
Image image)
Annotate the image with indicators for whether or not help or quick fix
are available.
|
int |
compare(MarkerItem item1,
MarkerItem item2)
Compare item1 and item2 for sorting purposes.
|
Image |
getColumnHeaderImage() |
String |
getColumnHeaderText()
Return the text to be displayed in the column header for this field.
|
String |
getColumnTooltipText()
Return the text for the column tooltip.
|
IConfigurationElement |
getConfigurationElement()
Get the configuration element for the receiver.
|
int |
getDefaultColumnWidth(Control control)
Get the number of characters that should be reserved for the receiver.
|
EditingSupport |
getEditingSupport(ColumnViewer viewer)
Return the editing support for entries for this field.
|
protected ResourceManager |
getImageManager()
Return the image manager used by the receiver.
|
String |
getName()
Return the name of this field.
|
abstract String |
getValue(MarkerItem item) |
void |
setConfigurationElement(IConfigurationElement element)
Set the configuration element used by the receiver.
|
void |
setImageManager(ResourceManager manager)
Set the imageManager.
|
void |
update(ViewerCell cell)
Update the contents of the cell.
|
public Image annotateImage(MarkerItem item, Image image)
item
- the item being decoratedimage
- the image being overlaidpublic int compare(MarkerItem item1, MarkerItem item2)
item1
- item2
- 0
if the value of item1 and the value of
item2 are equal for this field.
public Image getColumnHeaderImage()
null.
public String getColumnHeaderText()
this is the default column tooltip text
public String getName()
public String getColumnTooltipText()
getColumnHeaderText()
public final IConfigurationElement getConfigurationElement()
public int getDefaultColumnWidth(Control control)
control
- the control to scale frompublic EditingSupport getEditingSupport(ColumnViewer viewer)
viewer
- the viewer this will be applied toEditingSupport
or null
.protected ResourceManager getImageManager()
public abstract String getValue(MarkerItem item)
item
- public final void setConfigurationElement(IConfigurationElement element)
element
- public final void setImageManager(ResourceManager manager)
MarkerSupportView
as this is done for you.manager
- public void update(ViewerCell cell)
cell
-
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.