1 package org.ximtec.igesture.tool.view.devicemanager.action;
2
3 import java.awt.event.ActionEvent;
4
5 import org.sigtec.graphix.widget.BasicAction;
6 import org.ximtec.igesture.tool.GestureConstants;
7 import org.ximtec.igesture.tool.service.GuiBundleService;
8 import org.ximtec.igesture.tool.view.devicemanager.DeviceManagerController;
9 import org.ximtec.igesture.tool.view.devicemanager.wizard.AddDeviceWizard;
10
11
12
13
14
15
16 public class AddDeviceAction extends BasicAction{
17
18 private DeviceManagerController controller;
19
20 public AddDeviceAction(DeviceManagerController controller)
21 {
22 super(GestureConstants.ADD_DEVICE, controller.getLocator().getService(
23 GuiBundleService.IDENTIFIER, GuiBundleService.class));
24 this.controller = controller;
25 }
26
27 @Override
28 public void actionPerformed(ActionEvent e) {
29
30 AddDeviceWizard wizard = new AddDeviceWizard(controller,false);
31 wizard.execute();
32
33 }
34
35 }