com.bluemarsh.jswat.breakpoint.ui
Class MethodBreakpointUI

java.lang.Object
  |
  +--com.bluemarsh.jswat.breakpoint.ui.BasicBreakpointUI
        |
        +--com.bluemarsh.jswat.breakpoint.ui.MethodBreakpointUI
All Implemented Interfaces:
BreakpointUI, UIAdapter

public class MethodBreakpointUI
extends BasicBreakpointUI

Class MethodBreakpointUI is an adapter capable of building a user interface to represent a method breakpoint.

Author:
Nathan Fiedler

Inner classes inherited from class com.bluemarsh.jswat.breakpoint.ui.BasicBreakpointUI
BasicBreakpointUI.GroupNamePair, BasicBreakpointUI.NumericDocument
 
Field Summary
protected  javax.swing.JTextField methodArgsTextfield
          Breakpoint's method arguments text field.
protected  javax.swing.JTextField methodNameTextfield
          Breakpoint's method name text field.
protected  java.util.List originalMethodArgs
          Original method arguments.
protected  java.lang.String originalMethodName
          Original method name.
protected  MethodBreakpoint targetBreakpoint
          Breakpoint that we are working against.
 
Fields inherited from class com.bluemarsh.jswat.breakpoint.ui.BasicBreakpointUI
classFiltersTextfield, enabledCheckbox, expirecountTextfield, gbc, gbl, groupCombo, originalClassFilters, originalEnabled, originalExpirecount, originalGroup, originalSkipcount, originalSuspendPolicy, originalThreadFilters, propertiesPanel, skipcountTextfield, suspendGroup, threadFiltersTextfield
 
Constructor Summary
MethodBreakpointUI(MethodBreakpoint bp)
          Create a MethodBreakpointUI that will operate on the given breakpoint.
 
Method Summary
 void commit()
          Commit the values stored in the user interface elements to the object this adapter is representing (breakpoint, condition, or monitor).
 void undo()
          Reverse the changes made to the object this adapter is representing (breakpoint, condition, or monitor).
 
Methods inherited from class com.bluemarsh.jswat.breakpoint.ui.BasicBreakpointUI
addClassFilter, addThreadFilter, buildGroupList, findAndSelectGroup, getSelectedGroup, getUI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

targetBreakpoint

protected MethodBreakpoint targetBreakpoint
Breakpoint that we are working against.

originalMethodName

protected java.lang.String originalMethodName
Original method name.

originalMethodArgs

protected java.util.List originalMethodArgs
Original method arguments.

methodNameTextfield

protected javax.swing.JTextField methodNameTextfield
Breakpoint's method name text field.

methodArgsTextfield

protected javax.swing.JTextField methodArgsTextfield
Breakpoint's method arguments text field.
Constructor Detail

MethodBreakpointUI

public MethodBreakpointUI(MethodBreakpoint bp)
Create a MethodBreakpointUI that will operate on the given breakpoint.
Parameters:
bp - breakpoint to be edited.
Method Detail

commit

public void commit()
Commit the values stored in the user interface elements to the object this adapter is representing (breakpoint, condition, or monitor).
Overrides:
commit in class BasicBreakpointUI

undo

public void undo()
Reverse the changes made to the object this adapter is representing (breakpoint, condition, or monitor). This must not modify the user interface widgets.
Overrides:
undo in class BasicBreakpointUI
Following copied from interface: com.bluemarsh.jswat.breakpoint.ui.UIAdapter
Throws:
UnsupportedOperationException - Thrown if this operation is not supported.