|
|||||||||
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.BreakPanel
Class BreakPanel is responsible for displaying all known breakpoints in a tree structure. The root node of the tree is the "Default" breakpoint group, which may contain other groups and/or breakpoints.
It will keep itself up to date with changes in the breakpoints, by listening to the breakpoint manager.
Inner Class Summary | |
protected class |
BreakPanel.BasicTreeNode
Class BasicTreeNode is the base class for both breakpoint nodes and breakpoint group nodes. |
protected class |
BreakPanel.BreakpointNode
Class BreakpointNode represents a breakpoint in the tree. |
protected class |
BreakPanel.GroupNode
Class GroupNode represents a breakpoint group in the tree. |
protected static interface |
BreakPanel.NodeProcessor
Interface NodeProcessor defines methods necessary for a class that wishes to process nodes in a tree. |
Field Summary | |
protected Session |
owningSession
Session that we are listening to. |
protected javax.swing.JComponent |
uiComponent
Containing component object. |
protected javax.swing.JTree |
uiTree
Tree representing the breakoint groups and breakpoints. |
Fields inherited from class com.bluemarsh.jswat.panel.JSwatPanel |
swat |
Constructor Summary | |
BreakPanel()
Constructs a BreakPanel. |
Method Summary | |
void |
activate(Session session)
Called when the Session is about to begin an active debugging session. |
void |
breakpointAdded(BreakpointEvent e)
Invoked when a breakpoint has been added. |
void |
breakpointModified(BreakpointEvent e)
Invoked when a breakpoint has been modified. |
void |
breakpointRemoved(BreakpointEvent e)
Invoked when a breakpoint has been removed. |
protected void |
buildGroupNode(BreakpointGroup brkgrp,
javax.swing.tree.MutableTreeNode node)
Fill in the given tree node with the breakpoint's contents. |
protected javax.swing.JComponent |
buildUI(javax.swing.JComponent tree)
Build the interface components for this panel (buttons mostly). |
void |
close(Session session)
Called when the Session is closing down this panel, generally just after the panel has been removed from the Session. |
void |
deactivate(Session session)
Called when the Session is about to end an active debugging session. |
protected void |
deleteSelections()
Deletes the currently selected breakpoints and groups. |
protected void |
disableSelections()
Disables the currently selected breakpoints and groups. |
protected void |
editBreakpoint(Breakpoint bp)
Show the given breakpoint's properties. |
protected void |
enableSelections()
Enables the currently selected breakpoints and groups. |
Breakpoint |
getSelectedBreakpoint()
Returns the first currently selected breakpoint in the panel, if any. |
javax.swing.JComponent |
getUI()
Returns a reference to the UI component. |
void |
groupAdded(GroupEvent event)
Invoked when a group has been added. |
void |
groupDisabled(GroupEvent event)
Invoked when a group has been disabled. |
void |
groupEnabled(GroupEvent event)
Invoked when a group has been enabled. |
void |
groupRemoved(GroupEvent event)
Invoked when a group has been removed. |
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 |
processSelections(BreakPanel.NodeProcessor processor)
Perform some action on the set of selected breakpoints and breakpoint groups. |
void |
refresh(Session session)
Update the display on the screen. |
protected void |
showSource()
Show the source code for the first selected breakpoint, if the breakpoint is indeed locatable. |
Methods inherited from class com.bluemarsh.jswat.panel.JSwatPanel |
getParentWindow |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected javax.swing.JTree uiTree
protected javax.swing.JComponent uiComponent
protected Session owningSession
Constructor Detail |
public BreakPanel()
Method Detail |
public void activate(Session session)
activate
in class JSwatPanel
session
- Session being activated.public void breakpointAdded(BreakpointEvent e)
breakpointAdded
in interface BreakpointListener
e
- breakpoint change eventpublic void breakpointModified(BreakpointEvent e)
breakpointModified
in interface BreakpointListener
e
- breakpoint change eventpublic void breakpointRemoved(BreakpointEvent e)
breakpointRemoved
in interface BreakpointListener
e
- breakpoint change eventprotected javax.swing.JComponent buildUI(javax.swing.JComponent tree)
tree
- breakpoints tree component.protected void buildGroupNode(BreakpointGroup brkgrp, javax.swing.tree.MutableTreeNode node)
brkpgrp
- breakpoint group to build out.node
- tree node to fill in.public void close(Session session)
close
in class JSwatPanel
session
- Session closing the panel.public void deactivate(Session session)
deactivate
in class JSwatPanel
session
- Session being deactivated.protected void deleteSelections()
protected void disableSelections()
protected void editBreakpoint(Breakpoint bp)
bp
- breakpoint to edit.protected void enableSelections()
public Breakpoint getSelectedBreakpoint()
public javax.swing.JComponent getUI()
getUI
in class JSwatPanel
public void groupAdded(GroupEvent event)
groupAdded
in interface GroupListener
event
- group change eventpublic void groupDisabled(GroupEvent event)
groupDisabled
in interface GroupListener
event
- group change eventpublic void groupEnabled(GroupEvent event)
groupEnabled
in interface GroupListener
event
- group change eventpublic void groupRemoved(GroupEvent event)
groupRemoved
in interface GroupListener
event
- group change eventpublic void init(Session session)
init
in class JSwatPanel
session
- Session initializing this panel.protected void processSelections(BreakPanel.NodeProcessor processor)
processor
- node processor.public void refresh(Session session)
refresh
in class JSwatPanel
session
- debugging Session object.protected void showSource()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |