diff --git a/AlgebraicDataflowArchitectureModel/src/application/simulator/SimulatorMenuBar.java b/AlgebraicDataflowArchitectureModel/src/application/simulator/SimulatorMenuBar.java index 29463f4..8d1e609 100644 --- a/AlgebraicDataflowArchitectureModel/src/application/simulator/SimulatorMenuBar.java +++ b/AlgebraicDataflowArchitectureModel/src/application/simulator/SimulatorMenuBar.java @@ -1,27 +1,25 @@ package application.simulator; -import javax.swing.JMenu; -import javax.swing.JMenuBar; - import application.actions.ZoomInAction; import application.actions.ZoomOutAction; import application.simulator.actions.ShowUISimulatorAction; +import javax.swing.*; + public class SimulatorMenuBar extends JMenuBar { - private static final long serialVersionUID = 7769410930379012970L; + private static final long serialVersionUID = 7769410930379012970L; - private SimulatorWindow simulatorWindow = null; + private SimulatorWindow simulatorWindow; - public SimulatorMenuBar(SimulatorWindow simulatorWindow) { - this.simulatorWindow = simulatorWindow; - - JMenu menu = null; - menu = add(new JMenu("View")); - menu.add(new ZoomInAction(simulatorWindow.getGraphComponent())); - menu.add(new ZoomOutAction(simulatorWindow.getGraphComponent())); - - menu = add(new JMenu("Show")); - menu.add(new ShowUISimulatorAction(simulatorWindow.getSimulator())); - } + public SimulatorMenuBar(SimulatorWindow simulatorWindow) { + this.simulatorWindow = simulatorWindow; + JMenu menu; + menu = add(new JMenu("View")); + menu.add(new ZoomInAction(simulatorWindow.getGraphComponent())); + menu.add(new ZoomOutAction(simulatorWindow.getGraphComponent())); + + menu = add(new JMenu("Show")); + menu.add(new ShowUISimulatorAction(simulatorWindow.getSimulator())); + } }