Package org.eclipse.jface.action
Class StatusLineContributionItem
java.lang.Object
org.eclipse.jface.action.ContributionItem
org.eclipse.jface.action.StatusLineContributionItem
- All Implemented Interfaces:
- IContributionItem
A contribution item to be used with status line managers.
 
This class may be instantiated; it is not intended to be subclassed.
- Since:
- 3.4
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intA constant indicating that the contribution should compute its actual size depending on the text.
- 
Constructor SummaryConstructorsConstructorDescriptionCreates a status line contribution item with the given id.StatusLineContributionItem(String id, int charWidth) Creates a status line contribution item with the given id that displays the given number of characters.
- 
Method SummaryModifier and TypeMethodDescriptionvoidThe default implementation of thisIContributionItemmethod does nothing.An accessor for the current location of this status line contribution item -- relative to the display.getText()Retrieves the text that is being displayed in the status line.voidSets the text to be displayed in the status line.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, update
- 
Field Details- 
CALC_TRUE_WIDTHpublic static final int CALC_TRUE_WIDTHA constant indicating that the contribution should compute its actual size depending on the text. It will grab all space necessary to display the whole text.- Since:
- 3.6
- See Also:
 
 
- 
- 
Constructor Details- 
StatusLineContributionItemCreates a status line contribution item with the given id.- Parameters:
- id- the contribution item's id, or- nullif it is to have no id
 
- 
StatusLineContributionItemCreates a status line contribution item with the given id that displays the given number of characters.- Parameters:
- id- the contribution item's id, or- nullif it is to have no id
- charWidth- the number of characters to display. If the value is CALC_TRUE_WIDTH then the contribution will compute the preferred size exactly. Otherwise the size will be based on the average character size * 'charWidth'
 
 
- 
- 
Method Details- 
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
 
- 
getDisplayLocationAn accessor for the current location of this status line contribution item -- relative to the display.- Returns:
- The current location of this status line; nullif not yet initialized.
 
- 
getTextRetrieves the text that is being displayed in the status line.- Returns:
- the text that is currently being displayed
 
- 
setTextSets the text to be displayed in the status line.- Parameters:
- text- the text to be displayed, must not be- null
 
 
-