Package org.eclipse.ui.texteditor
Class StatusLineContributionItem
java.lang.Object
org.eclipse.jface.action.ContributionItem
org.eclipse.ui.texteditor.StatusLineContributionItem
- All Implemented Interfaces:
- IContributionItem,- IStatusField,- IStatusFieldExtension
public class StatusLineContributionItem
extends ContributionItem
implements IStatusField, IStatusFieldExtension
Contribution item for the status line.
- Since:
- 2.0
- 
Constructor SummaryConstructorsConstructorDescriptionCreates a new item with the given id.StatusLineContributionItem(String id, boolean visible, int widthInChars) Creates a new item with the given attributes.
- 
Method SummaryModifier and TypeMethodDescriptionvoidThe default implementation of thisIContributionItemmethod does nothing.voidsetActionHandler(IAction actionHandler) voidsetErrorImage(Image image) Sets the error image of this status field.voidsetErrorText(String text) Sets the text of this status field.voidSets the image of this status field.voidSets the text of this status field.voidsetToolTipText(String string) Sets tool tip text for this status field.Methods inherited from class org.eclipse.jface.action.ContributionItemdispose, fill, fill, fill, getId, getParent, isDirty, isDynamic, isEnabled, isGroupMarker, isSeparator, isVisible, saveWidgetState, setId, setParent, setVisible, toString, update, updateMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.ui.texteditor.IStatusFieldExtensionsetVisible
- 
Constructor Details- 
StatusLineContributionItemCreates a new item with the given id.- Parameters:
- id- the item's id
 
- 
StatusLineContributionItemCreates a new item with the given attributes.- Parameters:
- id- the item's id
- visible- the visibility of this item
- widthInChars- the width in characters
- Since:
- 3.0
 
 
- 
- 
Method Details- 
setTextDescription copied from interface:IStatusFieldSets the text of this status field.- Specified by:
- setTextin interface- IStatusField
- Parameters:
- text- the text shown in the status field
 
- 
setImageDescription copied from interface:IStatusFieldSets the image of this status field.- Specified by:
- setImagein interface- IStatusField
- Parameters:
- image- the image shown in the status field
 
- 
setErrorTextDescription copied from interface:IStatusFieldExtensionSets the text of this status field.The error text overrides the current text until the error text is cleared (set to null).- Specified by:
- setErrorTextin interface- IStatusFieldExtension
- Parameters:
- text- the error text shown in the status field or- nullto clear
- See Also:
 
- 
setErrorImageDescription copied from interface:IStatusFieldExtensionSets the error image of this status field.The error image overrides the current image until the error image is cleared (set to null).- Specified by:
- setErrorImagein interface- IStatusFieldExtension
- Parameters:
- image- the error image shown in the status field or- nullto clear
- See Also:
 
- 
setToolTipTextDescription copied from interface:IStatusFieldExtensionSets tool tip text for this status field.- Specified by:
- setToolTipTextin interface- IStatusFieldExtension
- Parameters:
- string- the new tool tip text or- nullto clear
 
- 
fillDescription copied from class:ContributionItemThe default implementation of thisIContributionItemmethod does nothing. Subclasses may override.- Specified by:
- fillin interface- IContributionItem
- Overrides:
- fillin class- ContributionItem
- Parameters:
- parent- the parent control
 
- 
setActionHandler
 
-