|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bluemarsh.jswat.panel.JSwatPanel | +--com.bluemarsh.jswat.panel.ClassPanel
Class ClassPanel is responsible for displaying a class tree in a navigable tree component.
Field Summary | |
protected boolean |
awaitingUpdate
True if panel is waiting to be called by AWT event thread in order to update the panel. |
protected java.lang.String |
defaultRootName
Default root node name. |
protected com.sun.jdi.request.ClassPrepareRequest |
prepareRequest
Class prepare request we created. |
protected Session |
session
Session that owns us. |
protected com.bluemarsh.jswat.panel.ClassPanel.ClassTree |
tree
Tree that displays classes. |
protected com.bluemarsh.jswat.panel.ClassPanel.ClassTreeModel |
treeModel
Class tree data model. |
protected javax.swing.JScrollPane |
uicomp
Our UI component - scrollable pane. |
protected com.sun.jdi.request.ClassUnloadRequest |
unloadRequest
Class unload request we created. |
Fields inherited from class com.bluemarsh.jswat.panel.JSwatPanel |
swat |
Fields inherited from interface com.bluemarsh.jswat.event.VMEventListener |
PRIORITY_BREAKPOINT, PRIORITY_DEFAULT, PRIORITY_HIGH, PRIORITY_HIGHEST, PRIORITY_LOW, PRIORITY_LOWEST, PRIORITY_SESSION |
Constructor Summary | |
ClassPanel()
Constructs a new ClassPanel with the default tree. |
Method Summary | |
void |
activate(Session session)
Called when the Session is about to begin an active debugging session. |
protected void |
buildTree(com.sun.jdi.VirtualMachine vm)
Builds out the class tree. |
void |
deactivate(Session session)
Called when the Session is about to end an active debugging session. |
boolean |
eventOccurred(com.sun.jdi.event.Event e)
Invoked when a VM event has occurred. |
static java.lang.String |
getPathName(javax.swing.tree.TreePath tpath)
Converts the TreePath into a String object using the user object names of the path nodes. |
javax.swing.JComponent |
getPeer()
Returns a reference to the peer UI component. |
javax.swing.JComponent |
getUI()
Returns a reference to the UI component. |
void |
init(Session session)
Called when the Session is ready to initialize this panel, generally just after the panel has been added to the Session. |
protected void |
pathSelected(javax.swing.tree.TreePath tpath)
Called whenever a node in the tree has been double-clicked on. |
void |
run()
Builds the class tree from scratch. |
Methods inherited from class com.bluemarsh.jswat.panel.JSwatPanel |
close, getParentWindow, refresh |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected com.bluemarsh.jswat.panel.ClassPanel.ClassTree tree
protected javax.swing.JScrollPane uicomp
protected java.lang.String defaultRootName
protected com.bluemarsh.jswat.panel.ClassPanel.ClassTreeModel treeModel
protected Session session
protected com.sun.jdi.request.ClassPrepareRequest prepareRequest
protected com.sun.jdi.request.ClassUnloadRequest unloadRequest
protected volatile boolean awaitingUpdate
Constructor Detail |
public ClassPanel()
Method Detail |
public void activate(Session session)
activate
in class JSwatPanel
session
- Session being activated.protected void buildTree(com.sun.jdi.VirtualMachine vm)
vm
- Virtual machine, or null if deactivating.public void deactivate(Session session)
deactivate
in class JSwatPanel
session
- Session being deactivated.public boolean eventOccurred(com.sun.jdi.event.Event e)
eventOccurred
in interface VMEventListener
e
- VM eventpublic static java.lang.String getPathName(javax.swing.tree.TreePath tpath)
tpath
- TreePathpublic javax.swing.JComponent getPeer()
public javax.swing.JComponent getUI()
getUI
in class JSwatPanel
public void init(Session session)
init
in class JSwatPanel
session
- Session initializing this panel.protected void pathSelected(javax.swing.tree.TreePath tpath)
tpath
- TreePath.public void run()
run
in interface java.lang.Runnable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |