org.eclipse.ui.texteditor
Class StatusLineContributionItem
java.lang.Object
|
+--org.eclipse.jface.action.ContributionItem
|
+--org.eclipse.ui.texteditor.StatusLineContributionItem
- All Implemented Interfaces:
- IContributionItem, IStatusField
- public class StatusLineContributionItem
- extends ContributionItem
- implements IStatusField
Contribution item for the status line.
- Since:
- 2.0
Method Summary |
void |
fill(Composite parent)
The default implementation of this IContributionItem
method does nothing. |
void |
setImage(Image image)
Sets the image of this status field. |
void |
setText(String text)
Sets the text of this status field. |
Methods inherited from class org.eclipse.jface.action.ContributionItem |
dispose, fill, fill, getId, getParent, isDirty, isDynamic, isEnabled, isGroupMarker, isSeparator, isVisible, setParent, setVisible, toString, update, update |
StatusLineContributionItem
public StatusLineContributionItem(String id)
- Creates a new item with the given id.
- Parameters:
id
- the item's id
setText
public void setText(String text)
- Description copied from interface:
IStatusField
- Sets the text of this status field.
- Specified by:
setText
in interface IStatusField
- Following copied from interface:
org.eclipse.ui.texteditor.IStatusField
- Parameters:
text
- the text shown in the status field
setImage
public void setImage(Image image)
- Description copied from interface:
IStatusField
- Sets the image of this status field.
- Specified by:
setImage
in interface IStatusField
- Following copied from interface:
org.eclipse.ui.texteditor.IStatusField
- Parameters:
image
- the image shown in the status field
fill
public void fill(Composite parent)
- Description copied from class:
ContributionItem
- The default implementation of this
IContributionItem
method does nothing. Subclasses may override.
- Overrides:
fill
in class ContributionItem
- Following copied from interface:
org.eclipse.jface.action.IContributionItem
- Parameters:
parent
- the parent control
Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.