Package mars.venus.actions.run
Class RunClearBreakpointsAction
java.lang.Object
javax.swing.AbstractAction
mars.venus.actions.VenusAction
mars.venus.actions.run.RunClearBreakpointsAction
- All Implemented Interfaces:
ActionListener
,Serializable
,Cloneable
,EventListener
,Action
Action for the Run -> Clear Breakpoints menu item.
- See Also:
-
Field Summary
Fields inherited from class mars.venus.actions.VenusAction
gui, shortcut
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
-
Constructor Summary
ConstructorsConstructorDescriptionRunClearBreakpointsAction
(VenusUI gui, Integer mnemonic, KeyStroke accel) Create the object and register with text segment window as a listener on its table model. -
Method Summary
Modifier and TypeMethodDescriptionvoid
actionPerformed
(ActionEvent event) When this option is selected, tell text segment window to clear breakpoints in its table model.void
update()
This is response upon editing of text segment table model.Methods inherited from class mars.venus.actions.VenusAction
getGUI, getName, getShortcut, registerShortcut
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Constructor Details
-
RunClearBreakpointsAction
Create the object and register with text segment window as a listener on its table model. The table model has not been created yet, so text segment window will hang onto this registration info and transfer it to the table model upon creation (which happens with each successful assembly).
-
-
Method Details
-
actionPerformed
When this option is selected, tell text segment window to clear breakpoints in its table model.- Specified by:
actionPerformed
in interfaceActionListener
- Specified by:
actionPerformed
in classVenusAction
-
update
public void update()This is response upon editing of text segment table model. The only editable column is breakpoints so this method is called only when user adds or removes a breakpoint. Gets new breakpoint count and sets enabled status accordingly.- Overrides:
update
in classVenusAction
-