- All Implemented Interfaces:
Clients may contribute actions to the context menu of a text console page
org.eclipse.ui.popupMenus extension point. The context
menu identifier for a text console page is the associated console's type
.#ContextMenu. When a console does not specify
a type, the context menu id is
Clients may subclass this class.
Method SummaryModifier and TypeMethodDescription
protected voidFill the context menu
protected voidCreates actions.
voidCreates the SWT control for this page under the given parent control.
protected TextConsoleViewerReturns a viewer used to display the contents of this page's console.
dispose()Disposes of this page.
<T> TReturns an object which is an instance of the given class associated with this object.
protected IConsoleReturns the console this page is displaying.
protected IConsoleViewReturns the view this page is contained in.Returns the SWT control for this page.
getSite()Returns the site for this page.Returns the viewer contained in this page.
voidInitializes this page with the given page site.
voidNotification that a property has changed.
voidAllows the page to make contributions to the given action bars.
setFocus()Asks this page to take focus within its pagebook view.
protected voidConfigures an action for key bindings.
voidSets the viewer contained in this page.
protected voidUpdates the global action with the given id
protected voidUpdates selection dependent actions.
fClearOutputActionprotected ClearOutputAction fClearOutputAction
TextConsolePageConstructs a text console page for the given console in the given view.
console- text console
view- console view the page is contained in
createViewerReturns a viewer used to display the contents of this page's console.
parent- container for the viewer
- a viewer used to display the contents of this page's console
getSitepublic IPageSite getSite()Description copied from interface:
IPageBookViewPageReturns the site for this page. May be
nullif no site has been set.
initDescription copied from interface:
IPageBookViewPageInitializes this page with the given page site.
This method is automatically called by the workbench shortly after page construction. It marks the start of the pages's lifecycle. Clients must not call this method.
updateSelectionDependentActionsprotected void updateSelectionDependentActions()Updates selection dependent actions.
createControlpublic void createControl
(Composite parent)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).
disposepublic void dispose()Disposes of this page.
This is the last method called on the
IPage. Implementors should clean up any resources associated with the page.
Callers of this method should ensure that the page's control (if it exists) has been disposed before calling this method. However, for backward compatibilty, implementors must also ensure that the page's control has been disposed before this method returns.
Note that there is no guarantee that createControl() has been called, so the control may never have been created.
getControlpublic Control getControl()Returns the SWT control for this page.
setActionBarspublic void setActionBars
(IActionBars actionBars)Allows the page to make contributions to the given action bars. The contributions will be visible when the page is visible.
This method is automatically called shortly after
setFocuspublic void setFocus()Asks this page to take focus within its pagebook view.
propertyChangepublic void propertyChange
(PropertyChangeEvent event)Description copied from interface:
IPropertyChangeListenerNotification that a property has changed.
This method gets called when the observed object fires a property change event.
createActionsprotected void createActions()Creates actions.
setGlobalActionConfigures an action for key bindings.
actionBars- action bars for this page
actionID- action definition id
action- associated action
getAdapterpublic <T> T getAdapter
(Class<T> required)Description copied from interface:
IAdaptableReturns an object which is an instance of the given class associated with this object. Returns
nullif no such object can be found.
Clients may implement this method but should generally call
Adapters.adapt(Object, Class, boolean)rather than invoking it directly.
getConsoleViewprotected IConsoleView getConsoleView()Returns the view this page is contained in.
- the view this page is contained in
getConsoleprotected IConsole getConsole()Returns the console this page is displaying.
- the console this page is displaying
updateActionprotected void updateAction
(String actionId)Updates the global action with the given id
actionId- action definition id
contextMenuAboutToShowprotected void contextMenuAboutToShow
(IMenuManager menuManager)Fill the context menu
configureToolBarprotected void configureToolBar
getViewerpublic TextConsoleViewer getViewer()Returns the viewer contained in this page.
- the viewer contained in this page
setViewerpublic void setViewer
(TextConsoleViewer viewer)Sets the viewer contained in this page.
viewer- text viewer