1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26 package org.ximtec.igesture.tool.view.batch.action;
27
28 import java.awt.event.ActionEvent;
29
30 import org.ximtec.igesture.tool.GestureConstants;
31 import org.ximtec.igesture.tool.core.Command;
32 import org.ximtec.igesture.tool.core.Controller;
33 import org.ximtec.igesture.tool.core.LocateableAction;
34 import org.ximtec.igesture.tool.view.batch.BatchController;
35
36 public class RunBatchAction extends LocateableAction {
37
38 private Controller controller;
39
40 public RunBatchAction(Controller controller) {
41 super(GestureConstants.BATCH_RUN, controller.getLocator());
42
43 this.controller = controller;
44
45 }
46
47 @Override
48 public void actionPerformed(ActionEvent action) {
49 Command command = new Command(BatchController.CMD_RUN_BATCH);
50 controller.execute(command);
51
52 }
53
54 }