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