1
2
3
4 package org.ximtec.igesture.tool.view.composite.action;
5
6 import java.awt.event.ActionEvent;
7
8 import org.ximtec.igesture.tool.GestureConstants;
9 import org.ximtec.igesture.tool.core.Command;
10 import org.ximtec.igesture.tool.core.Controller;
11 import org.ximtec.igesture.tool.core.LocateableAction;
12 import org.ximtec.igesture.tool.view.composite.CompositeController;
13
14
15
16
17
18 public class AddRecogniserAction extends LocateableAction {
19
20 private Controller controller;
21
22 public AddRecogniserAction(Controller controller)
23 {
24 super(GestureConstants.COMPOSITE_ADD_RECOGNISER_ACTION,controller.getLocator());
25 this.controller = controller;
26 }
27
28
29
30
31 @Override
32 public void actionPerformed(ActionEvent e) {
33 Command command = new Command(CompositeController.CMD_ADD_RECOGNISER);
34 controller.execute(command);
35 }
36
37 }