1 /*
2 * @(#)$Id: OptionsAction.java 689 2009-07-22 00:10:27Z bsigner $
3 *
4 * Author : Michele Croci, mcroci@gmail.com
5 *
6 * Purpose : Action to show options.
7 *
8 * -----------------------------------------------------------------------
9 *
10 * Revision Information:
11 *
12 * Date Who Reason
13 *
14 * Jan 10, 2008 crocimi Initial Release
15 * Jan 20, 2008 bsigner Redesign
16 *
17 * -----------------------------------------------------------------------
18 *
19 * Copyright 1999-2009 ETH Zurich. All Rights Reserved.
20 *
21 * This software is the proprietary information of ETH Zurich.
22 * Use is subject to license terms.
23 *
24 */
25
26
27 package org.ximtec.igesture.geco.gui.action;
28
29 import java.awt.event.ActionEvent;
30
31 import org.sigtec.graphix.widget.BasicAction;
32 import org.ximtec.igesture.geco.gui.MainView;
33 import org.ximtec.igesture.geco.util.GuiBundleTool;
34
35
36 /**
37 * Action to show options.
38 * @version 0.9, Dec 2007
39 * @author Michele Croci, mcroci@gmail.com
40 * @author Beat Signer, signer@inf.ethz.ch
41 */
42
43 public class OptionsAction extends BasicAction {
44
45 /**
46 * The key used to retrieve action details from the resource bundle.
47 */
48 public static final String KEY = "OptionsAction";
49
50 private MainView mainView;
51
52
53 public OptionsAction(MainView mainView) {
54 super(KEY, GuiBundleTool.getBundle());
55 this.mainView = mainView;
56 }
57
58
59 /**
60 * Shows the options dialog.
61 * @param event the event to be handled.
62 *
63 * @param event the action event.
64 */
65 public void actionPerformed(ActionEvent event) {
66 mainView.getComponentHandler().getOptionsDialog().showDialog();
67 } // actionPerformed
68
69 }