|
||||||||||
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
com.ibm.di.admin.DebuggerPanel
public class DebuggerPanel
Nested Class Summary | |
---|---|
class |
DebuggerPanel.CheckedTreeRenderer
This class renders a checkbox to the left of the tree label. |
class |
DebuggerPanel.DebuggerBreakpoints
This panel class contains the breakpoints in table format. |
class |
DebuggerPanel.DebuggerContextMenu
|
class |
DebuggerPanel.DebuggerWatchNode
This class is the node class used by DebuggerWatchPanel's JTree model. |
class |
DebuggerPanel.DebuggerWatchPanel
This class panel shows the watch variables in tree or table format. |
class |
DebuggerPanel.DebuggerWatchTable
This class shows watch variables in a table format. |
class |
DebuggerPanel.MyTree
Override the getToolTipText to avoid crash as reported in D924 |
class |
DebuggerPanel.UserObject
|
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.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
static String |
STOP_CMD
|
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 | |
---|---|
DebuggerPanel(ExecuteTask parent,
JComponent outputView,
String alname)
|
|
DebuggerPanel(ExecuteTask parent,
JComponent outputView,
String alname,
int port)
|
Method Summary | |
---|---|
void |
actionPerformed(ActionEvent event)
This method handles user interactions (buttons etc) |
void |
appendMsg(String msg)
Appends a message to the "console" log window. |
JComponent |
centerPanel()
|
Session |
connectServer(String server)
Establish a server connection. |
void |
createUI()
|
Object |
getHost()
Returns the host address the debugger panel listens for incoming connections. |
int |
getPort()
Returns the TCP port number the debugger panel listens for incoming connections. |
TreeModel |
getTreeModel()
|
void |
handleControl(String cmd,
DebugMessage msg)
This method is invoked to handle a debug control message from the remote side. |
boolean |
isAlPaused()
Returns true if the remote AssemblyLine is waiting for input |
boolean |
isAlWaiting()
Returns true if the remote assemblyline is waiting for the debugger (cont/stop etc) |
boolean |
isBreakOnError()
Returns true if the assemblyline is in "break-on-error" mode. |
void |
itemStateChanged(ItemEvent arg0)
Listener methods for keyboard input and item selection |
void |
keyPressed(KeyEvent ke)
|
void |
keyReleased(KeyEvent arg0)
|
void |
keyTyped(KeyEvent arg0)
|
void |
run()
This is the debugger thread loop that receives messages from the remote side. |
void |
sendCommand(Object obj)
This method sends a command to the remote side |
void |
setBreakOnError(boolean breakOnError)
Sets the break-on-error flag |
void |
showWatchVariables()
This method requests watch variables from the remote side. |
void |
startDebugger()
This methods starts the debugger thread that handles communications with the remote debugger client. |
void |
stopDebugger()
This methods stops the debugger thread. |
String |
tick()
Returns a bracketed string with the current time. |
void |
updateSplitPanels(boolean hideDebugPanels)
This method shows/hides the debug panels |
void |
writeObject(ObjectOutputStream os,
Object obj)
This method is invoked to write an object to the remote side. |
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 |
---|
public static final String STOP_CMD
Constructor Detail |
---|
public DebuggerPanel(ExecuteTask parent, JComponent outputView, String alname) throws IOException
parent
- The ExecuteTask object running the AL/EHoutputView
- The output log view of the running AL/EHalname
- The name of the AL/EH
IOException
public DebuggerPanel(ExecuteTask parent, JComponent outputView, String alname, int port) throws IOException
IOException
Method Detail |
---|
public void createUI()
public JComponent centerPanel()
public TreeModel getTreeModel()
public void itemStateChanged(ItemEvent arg0)
itemStateChanged
in interface ItemListener
public void keyPressed(KeyEvent ke)
keyPressed
in interface KeyListener
public void keyReleased(KeyEvent arg0)
keyReleased
in interface KeyListener
public void keyTyped(KeyEvent arg0)
keyTyped
in interface KeyListener
public void actionPerformed(ActionEvent event)
actionPerformed
in interface ActionListener
public void appendMsg(String msg)
msg
- The text to appendpublic String tick()
public void startDebugger()
public void stopDebugger()
public void handleControl(String cmd, DebugMessage msg)
cmd
- The command (e.g. swtich, eval etc)msg
- The DebugMessagepublic void sendCommand(Object obj)
obj
- The command (e.g. quit, cont etc)public void showWatchVariables()
public void writeObject(ObjectOutputStream os, Object obj) throws Exception
os
- The output stream (e.g. connection stream)obj
- The object to send
Exception
public void updateSplitPanels(boolean hideDebugPanels)
hideDebugPanels
- true = hide panelspublic void run()
run
in interface Runnable
public Session connectServer(String server) throws Exception
Exception
public Object getHost() throws Exception
Exception
public int getPort()
public boolean isBreakOnError()
public void setBreakOnError(boolean breakOnError)
breakOnError
- true if assemblyine is running in break-on-error modepublic boolean isAlWaiting()
public boolean isAlPaused()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |