|
||||||||||
| 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.JPanel
edu.rice.cs.drjava.ui.DebugPanel
public class DebugPanel
Panel for displaying the debugger input and output in MainFrame. This class is a swing view class and hence should only be accessed from the event-handling thread.
| Nested Class Summary | |
|---|---|
(package private) class |
DebugPanel.DebugPanelListener
Listens to events from the debug manager to keep the panel updated. |
private class |
DebugPanel.DebugTableMouseAdapter
A mouse adapter that allows for double-clicking and bringing up a right-click menu. |
private class |
DebugPanel.StackMouseAdapter
Concrete DebugTableMouseAdapter for the stack table. |
class |
DebugPanel.StackTableModel
A table for displaying the current stack trace. |
private class |
DebugPanel.ThreadMouseAdapter
Concrete DebugTableMouseAdapter for the thread table. |
class |
DebugPanel.ThreadTableModel
A table for displaying all current threads. |
private static class |
DebugPanel.WatchEditor
Adds config color support to DefaultCellEditor. |
private class |
DebugPanel.WatchRenderer
Adds config color support to DefaultTableCellRenderer. |
class |
DebugPanel.WatchTableModel
A table for displaying the watched variables and fields. |
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| 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 | |
|---|---|
private JButton |
_automaticTraceButton
|
private JPanel |
_buttonPanel
|
private JButton |
_closeButton
|
private long |
_currentThreadID
|
private Debugger |
_debugger
|
private MainFrame |
_frame
|
private JTabbedPane |
_leftPane
|
private SingleDisplayModel |
_model
|
private JButton |
_resumeButton
|
private JTabbedPane |
_rightPane
|
private ArrayList<DebugStackData> |
_stackFrames
|
private JPopupMenu |
_stackPopupMenu
|
private JTable |
_stackTable
|
private JLabel |
_statusBar
|
private JButton |
_stepIntoButton
|
private JButton |
_stepOutButton
|
private JButton |
_stepOverButton
|
private JPanel |
_tabsAndStatusPane
|
private JSplitPane |
_tabsPane
|
private DebugThreadData |
_threadInPopup
|
private ArrayList<DebugThreadData> |
_threads
|
private JPopupMenu |
_threadSuspendedPopupMenu
|
private JTable |
_threadTable
|
private ArrayList<DebugWatchData> |
_watches
|
private JPopupMenu |
_watchPopupMenu
|
private JTable |
_watchTable
|
| 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 | |
|---|---|
DebugPanel(MainFrame frame)
Constructs a new panel to display debugging information when the Debugger is active. |
|
| Method Summary | |
|---|---|
private void |
_initPopup()
Initializes the pop-up menu that is revealed when the user right-clicks on a row in the thread table or stack table. |
private void |
_initThreadTable()
|
private void |
_initWatchTable()
|
private void |
_selectCurrentThread()
|
private static void |
_setColors(Component c)
Quick helper for setting up color listeners. |
private void |
_setupButtonPanel()
Creates the buttons for controlling the debugger. |
private void |
_setupTabPanes()
Creates the tabbed panes in the debug panel. |
DebugStackData |
getSelectedStackItem()
Gets the DebugStackData that is currently selected in the stack table |
DebugThreadData |
getSelectedThread()
gets the thread that is currently selected in the thread table |
DebugWatchData |
getSelectedWatch()
|
String |
getStatusText()
|
void |
setAutomaticTraceButtonText()
Sets the AutomaticTraceButton text as well as the Automatic Trace check box menu item under Debugger based on whether automatic trace is enabled or not |
void |
setStatusText(String text)
|
void |
updateButtons()
|
void |
updateData()
Causes all display tables to update their information from the debug manager. |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private JSplitPane _tabsPane
private JTabbedPane _leftPane
private JTabbedPane _rightPane
private JPanel _tabsAndStatusPane
private JTable _watchTable
private JTable _stackTable
private JTable _threadTable
private long _currentThreadID
private JPopupMenu _threadSuspendedPopupMenu
private JPopupMenu _stackPopupMenu
private JPopupMenu _watchPopupMenu
private DebugThreadData _threadInPopup
private final SingleDisplayModel _model
private final MainFrame _frame
private final Debugger _debugger
private JPanel _buttonPanel
private JButton _closeButton
private JButton _resumeButton
private JButton _automaticTraceButton
private JButton _stepIntoButton
private JButton _stepOverButton
private JButton _stepOutButton
private JLabel _statusBar
private ArrayList<DebugWatchData> _watches
private ArrayList<DebugThreadData> _threads
private ArrayList<DebugStackData> _stackFrames
| Constructor Detail |
|---|
public DebugPanel(MainFrame frame)
| Method Detail |
|---|
private static void _setColors(Component c)
public void updateData()
private void _setupTabPanes()
private void _initWatchTable()
private void _initThreadTable()
private void _setupButtonPanel()
private void _initPopup()
private void _selectCurrentThread()
public DebugThreadData getSelectedThread()
public DebugStackData getSelectedStackItem()
public DebugWatchData getSelectedWatch()
public void updateButtons()
public void setAutomaticTraceButtonText()
public void setStatusText(String text)
public String getStatusText()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||