1
2
3
4
5
6
7
8
9
10 package nl.tudelft.simulation.dsol.gui.menu;
11
12 import javax.swing.JMenu;
13 import javax.swing.JMenuItem;
14
15 import nl.tudelft.simulation.dsol.gui.DSOLApplicationInterface;
16 import nl.tudelft.simulation.dsol.gui.actions.PauseAction;
17
18 /***
19 * The ToolMenu <br>
20 * (c) copyright 2003 <a href="http://www.simulation.tudelft.nl">Delft
21 * University of Technology </a>, the Netherlands. <br>
22 * See for project information <a
23 * href="http://www.simulation.tudelft.nl">www.simulation.tudelft.nl </a> <br>
24 * License of use: <a href="http://www.gnu.org/copyleft/gpl.html">General Public
25 * License (GPL) </a>, no warranty <br>
26 *
27 * @version 1.0 18.10.2003 <br>
28 * @author <a href="http://www.simulation.tudelft.nl/people/jacobs.html">Peter
29 * Jacobs </a>
30 */
31 public class ToolsMenu extends JMenu
32 {
33 /*** application the application */
34 private DSOLApplicationInterface application = null;
35
36 /***
37 * constructs a new FileMenu
38 *
39 * @param application the application
40 */
41 public ToolsMenu(final DSOLApplicationInterface application)
42 {
43 super("Tools");
44 this.application = application;
45 this.setMnemonic('T');
46 this.initialize();
47 }
48
49 /***
50 * initializes the menu
51 */
52 private void initialize()
53 {
54 JMenuItem pauseItem = new JMenuItem(new PauseAction(this.application));
55 this.add(pauseItem);
56 }
57 }