public class RunLogPage extends MessagePage implements Helpable
RunLogPage class is the LogPage used for
a running process.MessagePage.CustomTextPane, MessagePage.MessagePageEvent, MessagePage.MessagePageListener_scrollPane, _textComponent, MESSAGE_PAGE_IDEMPTY_SELECTION, PROJECT_PROP, VISIBLE_PROP, WORKSPACE_PROP| Modifier | Constructor and Description |
|---|---|
protected |
RunLogPage(RunProcess runProcess,
java.lang.String name,
javax.swing.Icon icon) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendToTextComponent(java.lang.String msg,
int maxLogLines)
Adds the given message to the message page, removing lines from the top,
if necessary, so it contains no more than maxLogLines
|
protected void |
clearTextComponent()
Clears the text component
|
void |
close() |
protected MessagePage.CustomTextPane |
createStyledTextPane() |
protected void |
deleteFromStartOfTextComponent(int linesToDelete,
int offset)
Deletes the linesToDelete from the message page
|
java.awt.Component |
getBottomComponent()
Gets the component to put in the bottom component position in the log page
display.
|
Context |
getContext(java.util.EventObject event)
Returns the Context that is associated with this log page.
|
boolean |
getDontForceOutput() |
java.awt.Component |
getGUI()
This method is for internal use only and should not be called
directly by an addin.
|
HelpInfo |
getHelpInfo()
Returns the
HelpInfo for this log page. |
java.lang.String |
getName()
Returns the name for this log page.
|
Project |
getProject()
Returns the
Project associated with this log page. |
RunProcess |
getRunProcess()
Returns the
RunProcess associated with this log page. |
java.lang.String |
getTitleName()
Returns the title name for this log page.
|
java.lang.String |
getToolTip()
Returns the tooltip for this log page.
|
java.lang.String |
getToolTipText() |
java.awt.Component |
getTopComponent()
Gets the component to put in the top component position in the log page display
By default returns getLogPageView().getToolbar()
|
static java.net.URL |
getURLFromStackTraceLine(java.lang.String stackTraceLine)
Abbot throws some non-Java lines in the stack trace, that have filenames that point to XML files.
|
Workspace |
getWorkspace()
Returns the
Workspace associated with this log page. |
boolean |
isProcessAlive()
Returns whether any process using this log page is still alive.
|
void |
log(java.lang.Object msg)
Display the specified
msg in this log page. |
void |
logWithoutShow(java.lang.Object msg) |
void |
setDontForceOutput(boolean dfo) |
void |
setNorthComponent(java.awt.Component northComponent)
Sets the component to be positioned in the NORTH section of the
RunLogPage. |
protected void |
setStuff(RunProcess runProcess) |
void |
setTopComponent(java.awt.Component topComponent)
Sets the component to be positioned in the top section of the
RunLogPage. |
void |
show()
Shows the view if hidden.
|
void |
showPage() |
addHref, addListener, addMouseListener, addStyle, checkLogOpen, clearAll, createToolbar, findHrefByOffset, getActionButton, getContextMenu, getController, getDisableAutoScrolling, getText, getToolbar, getToolbarSearchField, getWrapLines, logMsg, removeMouseListener, replaceTextComponentDocument, setController, setDisableAutoScrolling, setLogFileName, setToolbarVisible, setUnitTestMode, setWrapLines, updateToolTipText, updateVisibleActionsgetLogPageView, getTabIcon, getTabName, isDisplayComponentScrollable, isVisible, log, logQuietly, requestShow, requestShow, setOwner, tabNameUpdatedactivate, addViewListener, addViewSelectionListener, addViewStateListener, deactivate, fireViewCollapsed, fireViewExpanded, fireViewSelectionChanged, getContext, getId, getSelection, getSelectionFromUI, getViewWithoutDecoration, loadLayout, loadManifestToolbar, loadManifestToolbar, newId, owner, removeViewListener, removeViewSelectionListener, removeViewStateListener, saveLayout, scheduleUpdateSelection, setId, setOwner, toString, updateSelection, updateSelectionImpl, updateTitle, updateToolbarActions, updateVisibleActionsprotected RunLogPage(RunProcess runProcess, java.lang.String name, javax.swing.Icon icon)
protected void setStuff(RunProcess runProcess)
public java.awt.Component getBottomComponent()
AbstractLogPagegetBottomComponent in class AbstractLogPagepublic java.awt.Component getGUI()
getGUI in class MessagePageprotected MessagePage.CustomTextPane createStyledTextPane()
createStyledTextPane in class MessagePagepublic Context getContext(java.util.EventObject event)
getContext in class Viewevent - event associated with the context.public java.lang.String getName()
public java.lang.String getToolTipText()
public java.lang.String getToolTip()
getToolTip in interface LogPagegetToolTip in class AbstractLogPagepublic java.lang.String getTitleName()
getTitleName in interface LogPagegetTitleName in class AbstractLogPagepublic HelpInfo getHelpInfo()
HelpInfo for this log page.getHelpInfo in interface HelpablegetHelpInfo in class MessagePagepublic boolean isProcessAlive()
public RunProcess getRunProcess()
RunProcess associated with this log page.public void log(java.lang.Object msg)
msg in this log page.log in interface LogPagelog in class AbstractLogPagemsg - the message to display.public void logWithoutShow(java.lang.Object msg)
public void setDontForceOutput(boolean dfo)
public boolean getDontForceOutput()
protected void appendToTextComponent(java.lang.String msg,
int maxLogLines)
MessagePageappendToTextComponent in class MessagePagemsg - the message to addmaxLogLines - the maximum number of lines to displayprotected void deleteFromStartOfTextComponent(int linesToDelete,
int offset)
MessagePagedeleteFromStartOfTextComponent in class MessagePageprotected void clearTextComponent()
MessagePageclearTextComponent in class MessagePagepublic void showPage()
public void setNorthComponent(java.awt.Component northComponent)
RunLogPage.public void setTopComponent(java.awt.Component topComponent)
RunLogPage.public java.awt.Component getTopComponent()
AbstractLogPagegetTopComponent in class AbstractLogPagepublic void show()
Viewshow in class AbstractLogPagepublic void close()
close in class AbstractLogPagepublic static java.net.URL getURLFromStackTraceLine(java.lang.String stackTraceLine)