|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.jface.action.ContributionManager | +--org.eclipse.jface.action.StatusLineManager
A status line manager is a contribution manager which realizes itself and its items in a status line control.
This class may be instantiated; it may also be subclassed if a more sophisticated layout is required.
Constructor Summary | |
StatusLineManager()
Creates a new status line manager. |
Method Summary | |
org.eclipse.jface.action.StatusLine |
createControl(Composite parent)
Creates and returns this manager's status line control. |
void |
dispose()
Disposes of this status line manager and frees all allocated SWT resources. |
Control |
getControl()
Internal -- returns the StatusLine control. |
IProgressMonitor |
getProgressMonitor()
Returns a progress monitor which reports progress in the status line. |
boolean |
isCancelEnabled()
Returns whether the cancel button on the status line's progress monitor is enabled. |
void |
setCancelEnabled(boolean enabled)
Sets whether the cancel button on the status line's progress monitor is enabled. |
void |
setErrorMessage(Image image,
String message)
Sets the image and error message to be displayed on the status line. |
void |
setErrorMessage(String message)
Sets the error message text to be displayed on the status line. |
void |
setMessage(Image image,
String message)
Sets the image and message to be displayed on the status line. |
void |
setMessage(String message)
Sets the message text to be displayed on the status line. |
void |
update(boolean force)
Updates this manager's underlying widget(s) with any changes which have been made to it or its items. |
Methods inherited from class org.eclipse.jface.action.ContributionManager |
add, add, appendToGroup, appendToGroup, dumpStatistics, find, getItems, getOverrides, hasDynamicItems, insertAfter, insertAfter, insertBefore, insertBefore, isDirty, isEmpty, markDirty, prependToGroup, prependToGroup, remove, remove, removeAll, setDirty, setOverrides |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.jface.action.IContributionManager |
add, add, appendToGroup, appendToGroup, find, getItems, getOverrides, insertAfter, insertAfter, insertBefore, insertBefore, isDirty, isEmpty, markDirty, prependToGroup, prependToGroup, remove, remove, removeAll |
Constructor Detail |
public StatusLineManager()
createControl
method to create the
status line control.
Method Detail |
public org.eclipse.jface.action.StatusLine createControl(Composite parent)
parent
- the parent control
public void dispose()
removeAll
for that purpose.
public Control getControl()
This method is not intended to be used outside of the JFace framework.
public IProgressMonitor getProgressMonitor()
IStatusLineManager
getProgressMonitor
in interface IStatusLineManager
public boolean isCancelEnabled()
IStatusLineManager
isCancelEnabled
in interface IStatusLineManager
true
if the cancel button is enabled, or false
if notpublic void setCancelEnabled(boolean enabled)
IStatusLineManager
setCancelEnabled
in interface IStatusLineManager
public void setErrorMessage(String message)
IStatusLineManager
setErrorMessage
in interface IStatusLineManager
message
- the error message, or null
for no messagepublic void setErrorMessage(Image image, String message)
IStatusLineManager
setErrorMessage
in interface IStatusLineManager
image
- the image to use, or null
for no imagemessage
- the error message, or null
for no error messagepublic void setMessage(String message)
IStatusLineManager
setMessage
in interface IStatusLineManager
message
- the message, or null
for no messagepublic void setMessage(Image image, String message)
IStatusLineManager
setMessage
in interface IStatusLineManager
image
- the image to use, or null
for no imagemessage
- the message, or null
for no messagepublic void update(boolean force)
IContributionManager
update
in interface IContributionManager
force
- true
means update even if not dirty,
and false
for normal incremental updating
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |