1
2
3
4
5
6
7 package net.sf.gumshoe;
8
9 import org.eclipse.swt.events.SelectionEvent;
10 import org.eclipse.swt.events.SelectionListener;
11
12 /***
13 * @author Gabor
14 *
15 * TODO To change the template for this generated type comment go to
16 * Window - Preferences - Java - Code Style - Code Templates
17 */
18 public class MenuCommandAdapter implements SelectionListener {
19 protected MenuCommand cmd;
20
21 public MenuCommandAdapter() {
22 cmd = new MenuCommand() {
23 public void perform() {
24 }
25 };
26 }
27
28 public MenuCommandAdapter(MenuCommand cmd) {
29 this.cmd = cmd;
30 }
31
32 public void widgetSelected(SelectionEvent arg0) {
33 }
34
35 public void widgetDefaultSelected(SelectionEvent arg0) {
36 }
37 }