menuBar.add(editMenu);
  public static JMenuBar createMenubar(WorkspaceManager manager)  {    JMenuBar menuBar = new JMenuBar();    JMenu fileMenu = new JMenu(ResourceManager.getString("menu.file"));    JMenu itemNew = new JMenu(ResourceManager.getString("menu.new"));    itemNew.setIcon(ResourceManager.getIcon("newfile"));    itemNew.setHorizontalTextPosition(JMenu.RIGHT);    fileMenu.add(itemNew);    JMenuItem item;    Action newSpace = new NewWorkspace();    item = new JMenuItem(ActionManager.register("newspace", newSpace));    itemNew.add(item);    NewWorkflow newWorkflow = new NewWorkflow();    manager.addWorkspaceListener(newWorkflow);    item = new JMenuItem(ActionManager.register("newflow", newWorkflow));    itemNew.add(item);    item = new JMenuItem(ActionManager.register("openspace", new OpenWorkspace()));    fileMenu.add(item);    CloseWorkspace closeSpace = new CloseWorkspace();    manager.addWorkspaceListener(closeSpace);    item = new JMenuItem(ActionManager.register("closespace", closeSpace));    fileMenu.add(item);    CloseWorkflow closeWorkflow = new CloseWorkflow();    item = new JMenuItem(ActionManager.register("closeflow", closeWorkflow));    fileMenu.add(item);    ImportWorkflow importWorkflow = new ImportWorkflow();    manager.addWorkspaceListener(importWorkflow);    item = new JMenuItem(ActionManager.register("importflow", importWorkflow));    fileMenu.add(item);    PNGExport export = new PNGExport();    manager.addWorkspaceListener(export);    item = new JMenuItem(ActionManager.register("pngexport", export));    fileMenu.add(item);    fileMenu.addSeparator();    SaveWorkspace save = new SaveWorkspace();    manager.addWorkspaceListener(save);    item = new JMenuItem(ActionManager.register("savespace", save));    fileMenu.add(item);    fileMenu.addSeparator();    item = new JMenuItem(ActionManager.register("quit", new Quit()));    fileMenu.add(item);    JMenu viewMenu = new JMenu(ResourceManager.getString("menu.layout"));    AutoLayout auto = new AutoLayout(null);    manager.addWorkspaceListener(auto);    item = new JMenuItem(ActionManager.register("autolayout", auto));    viewMenu.add(item);    menuBar.add(fileMenu);    menuBar.add(viewMenu);    return menuBar;  }