1 package debugger.gui.actions.debugging;
2
3 import debugger.resources.ResourcesFactory;
4 import debugger.JapeDebugger;
5
6 import javax.swing.*;
7 import java.awt.event.ActionEvent;
8
9
15 public class GoNextBreakpointAction extends AbstractAction {
16 private static GoNextBreakpointAction ourInstance;
17
18 public synchronized static GoNextBreakpointAction getInstance() {
19 if (ourInstance == null) {
20 ourInstance = new GoNextBreakpointAction();
21 }
22 return ourInstance;
23 }
24
25 private GoNextBreakpointAction() {
26 super();
27 putValue(Action.SHORT_DESCRIPTION, new String("Go to next breakpoint"));
28 putValue(Action.SMALL_ICON, new ImageIcon(JapeDebugger.class.getResource("gui/icons/go.png")));
29 setEnabled(false);
30 }
31
32 public void actionPerformed(ActionEvent aEvt) {
33 this.setEnabled(false);
34 ResourcesFactory.getPhaseController().setStopAfterRHSExec(false);
35 ResourcesFactory.getPhaseController().continueSPT();
36 }
37 }
38
39