1 | ReportStart() {↵ | | 1 | Start() {↵
|
2 | }↵ | | 2 | }↵
|
|
3 | /**↵ | | 3 | /**↵
|
4 | * Gets the ActionNames attribute of the Start object.↵ | | 4 | * Gets the ActionNames attribute of the Start object.↵
|
5 | * ↵ | | 5 | * ↵
|
6 | * @return the ActionNames value↵ | | 6 | * @return the ActionNames value↵
|
7 | */↵ | | 7 | */↵
|
8 | public Set getActionNames() {↵ | | 8 | public Set getActionNames() {↵
|
9 | return commands;↵ | | 9 | return commands;↵
|
10 | }↵ | | 10 | }↵
|
|
11 | public void doAction(ActionEvent e) {↵ | | 11 | public void doAction(ActionEvent e) {↵
|
12 | if (e.getActionCommand().equals(ActionNames.ACTION_START)) {↵ | | 12 | if (e.getActionCommand().equals(ActionNames.ACTION_START)) {↵
|
13 | popupShouldSave(e);↵ | | 13 | popupShouldSave(e);↵
|
14 | startEngine();↵ | | 14 | startEngine();↵
|
15 | } else if (e.getActionCommand().equals(ActionNames.ACTION_STOP)) {↵ | | 15 | } else if (e.getActionCommand().equals(ActionNames.ACTION_STOP)) {↵
|
16 | if (engine != null) {↵ | | 16 | if (engine != null) {↵
|
17 | ReportGuiPackage.getInstance().getMainFrame().showStoppingMessage("");↵ | | 17 | GuiPackage.getInstance().getMainFrame().showStoppingMessage("");↵
|
18 | engine.stopTest();↵ | | 18 | engine.stopTest();↵
|
19 | engine = null;↵ | | 19 | engine = null;↵
|
20 | }↵ | | 20 | }↵
|
21 | } else if (e.getActionCommand().equals(ActionNames.ACTION_SHUTDOWN)) {↵ | | 21 | } else if (e.getActionCommand().equals(ActionNames.ACTION_SHUTDOWN)) {↵
|
22 | if (engine != null) {↵ | | 22 | if (engine != null) {↵
|
23 | ReportGuiPackage.getInstance().getMainFrame().showStoppingMessage("");↵ | | 23 | GuiPackage.getInstance().getMainFrame().showStoppingMessage("");↵
|
24 | engine.askThreadsToStop();↵ | | 24 | engine.askThreadsToStop();↵
|
25 | engine = null;↵ | | 25 | engine = null;↵
|
26 | }↵ | | 26 | }↵
|
27 | }↵ | | 27 | }↵
|
28 | } | | 28 | }
|