public class StatusLineContributionItem extends ContributionItem implements IStatusField, IStatusFieldExtension
Constructor and Description |
---|
StatusLineContributionItem(String id)
Creates a new item with the given id.
|
StatusLineContributionItem(String id,
boolean visible,
int widthInChars)
Creates a new item with the given attributes.
|
Modifier and Type | Method and Description |
---|---|
void |
fill(Composite parent)
The default implementation of this
IContributionItem
method does nothing. |
void |
setActionHandler(IAction actionHandler) |
void |
setErrorImage(Image image)
Sets the error image of this status field.
|
void |
setErrorText(String text)
Sets the text of this status field.
|
void |
setImage(Image image)
Sets the image of this status field.
|
void |
setText(String text)
Sets the text of this status field.
|
void |
setToolTipText(String string)
Sets tool tip text for this status field.
|
dispose, fill, fill, fill, getId, getParent, isDirty, isDynamic, isEnabled, isGroupMarker, isSeparator, isVisible, saveWidgetState, setId, setParent, setVisible, toString, update, update
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
setVisible
public StatusLineContributionItem(String id)
id
- the item's idpublic StatusLineContributionItem(String id, boolean visible, int widthInChars)
id
- the item's idvisible
- the visibility of this itemwidthInChars
- the width in characterspublic void setText(String text)
IStatusField
setText
in interface IStatusField
text
- the text shown in the status fieldpublic void setImage(Image image)
IStatusField
setImage
in interface IStatusField
image
- the image shown in the status fieldpublic void setErrorText(String text)
IStatusFieldExtension
The error text overrides the current text until the error
text is cleared (set to null
).
setErrorText
in interface IStatusFieldExtension
text
- the error text shown in the status field or null
to clearIStatusField.setText(String)
public void setErrorImage(Image image)
IStatusFieldExtension
The error image overrides the current image until the error
image is cleared (set to null
).
setErrorImage
in interface IStatusFieldExtension
image
- the error image shown in the status field or null
to clearIStatusField.setImage(Image)
public void setToolTipText(String string)
IStatusFieldExtension
setToolTipText
in interface IStatusFieldExtension
string
- the new tool tip text or null
to clearpublic void fill(Composite parent)
ContributionItem
IContributionItem
method does nothing. Subclasses may override.fill
in interface IContributionItem
fill
in class ContributionItem
parent
- the parent controlpublic void setActionHandler(IAction actionHandler)
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.