Package org.eclipse.ui.part
Class MessagePage
java.lang.Object
org.eclipse.ui.part.Page
org.eclipse.ui.part.MessagePage
- All Implemented Interfaces:
IPage
,IPageBookViewPage
A message page display a message in a pagebook view.
This class may be instantiated; it is not intended to be subclassed.
- See Also:
- Restriction:
- This class is not intended to be subclassed by clients.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
createControl
(Composite parent) Creates the SWT control for this page under the given parent control.ThePage
implementation of thisIPage
method returnsnull
.void
setFocus()
Sets focus to a part in the page.void
setMessage
(String message) Sets the message to the given string.Methods inherited from class org.eclipse.ui.part.Page
dispose, getSite, init, makeContributions, setActionBars
-
Constructor Details
-
MessagePage
public MessagePage()Creates a new page. The message is the empty string.
-
-
Method Details
-
createControl
Description copied from interface:IPage
Creates the SWT control for this page under the given parent control.Clients should not call this method (the workbench calls this method when it needs to, which may be never).
- Specified by:
createControl
in interfaceIPage
- Specified by:
createControl
in classPage
- Parameters:
parent
- the parent control
-
getControl
Description copied from class:Page
ThePage
implementation of thisIPage
method returnsnull
. Subclasses must reimplement.- Specified by:
getControl
in interfaceIPage
- Specified by:
getControl
in classPage
- Returns:
- the SWT control for this page, or
null
if this page does not have a control
-
setFocus
public void setFocus()Sets focus to a part in the page. -
setMessage
Sets the message to the given string.- Parameters:
message
- the message text
-