|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.text.JTextComponent
javax.swing.JEditorPane
edu.rice.cs.drjava.ui.ErrorPanel.ErrorListPane
edu.rice.cs.drjava.ui.JUnitPanel.JUnitErrorListPane
public class JUnitPanel.JUnitErrorListPane
A pane to show JUnit errors. It acts like a listbox (clicking selects an item) but items can each wrap, etc.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JEditorPane |
---|
JEditorPane.AccessibleJEditorPane, JEditorPane.AccessibleJEditorPaneHTML, JEditorPane.JEditorPaneAccessibleHypertextSupport |
Nested classes/interfaces inherited from class javax.swing.text.JTextComponent |
---|
JTextComponent.AccessibleJTextComponent, JTextComponent.DropLocation, JTextComponent.KeyBinding |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class edu.rice.cs.drjava.ui.ErrorPanel.ErrorListPane |
---|
_errorListPositions, _errorTable, _keymap, defaultMouseListener |
Fields inherited from class javax.swing.JEditorPane |
---|
HONOR_DISPLAY_PROPERTIES, W3C_LENGTH_UNITS |
Fields inherited from class javax.swing.text.JTextComponent |
---|
DEFAULT_KEYMAP, FOCUS_ACCELERATOR_KEY |
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
JUnitPanel.JUnitErrorListPane()
Constructs the JUnitErrorListPane. |
Method Summary | |
---|---|
protected String |
_getErrorText()
Returns the string to identify an error. |
protected String |
_getNumErrorsMessage(String failureName,
String failureMeaning)
Gets the message indicating the number of errors and warnings. |
protected String |
_getWarningText()
Returns the string to identify a warning. |
protected void |
_removeListHighlight()
Overrides _removeListHighlight in ErrorListPane to disable the _showStackTraceButton. |
void |
_replaceInProgressText(String msg)
Replaces the "Testing in progress..." text with the given message. |
protected void |
_updateNoErrors(boolean haveTestsRun)
Updates the list pane with no errors. |
protected void |
_updateWithErrors()
Used to show that testing was unsuccessful. |
protected void |
_updateWithErrors(String failureName,
String failureMeaning,
SwingDocument doc)
Used to show that the last compile was unsuccessful. |
void |
selectItem(DJError error)
Overrides selectItem in ErrorListPane to update the current _error selected and enabling the _showStackTraceButton. |
void |
setJUnitInProgress()
Puts the error pane into "junit in progress" state. |
void |
testEnded(String name,
boolean wasSuccessful,
boolean causedError)
Displays the results of a test that has finished. |
void |
testStarted(String name)
Provides the ability to display the name of the test being run. |
Methods inherited from class edu.rice.cs.drjava.ui.ErrorPanel.ErrorListPane |
---|
_errorAtPoint, _getErrorTitle, _getWarningTitle, _insertErrors, _insertErrorText, _isEmptySelection, _updateScrollButtons, addActionForKeyStroke, getSelectedIndex, getSwingDocument, hasNextError, hasPrevError, lostOwnership, nextError, prevError, selectNothing, shouldShowHighlightsInSource, updateListPane |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JUnitPanel.JUnitErrorListPane()
Method Detail |
---|
public void testStarted(String name)
public void testEnded(String name, boolean wasSuccessful, boolean causedError)
public void setJUnitInProgress()
protected void _updateWithErrors() throws BadLocationException
_updateWithErrors
in class ErrorPanel.ErrorListPane
BadLocationException
protected String _getNumErrorsMessage(String failureName, String failureMeaning)
_getNumErrorsMessage
in class ErrorPanel.ErrorListPane
protected void _updateWithErrors(String failureName, String failureMeaning, SwingDocument doc) throws BadLocationException
ErrorPanel.ErrorListPane
_updateWithErrors
in class ErrorPanel.ErrorListPane
BadLocationException
public void _replaceInProgressText(String msg) throws BadLocationException
msg
- the text to insert
BadLocationException
protected String _getWarningText()
_getWarningText
in class ErrorPanel.ErrorListPane
protected String _getErrorText()
_getErrorText
in class ErrorPanel.ErrorListPane
protected void _updateNoErrors(boolean haveTestsRun) throws BadLocationException
_updateNoErrors
in class ErrorPanel.ErrorListPane
BadLocationException
public void selectItem(DJError error)
selectItem
in class ErrorPanel.ErrorListPane
protected void _removeListHighlight()
_removeListHighlight
in class ErrorPanel.ErrorListPane
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |