JMenu createEditMenu(){
  JMenu editMenu=new JMenu("Edit");
  editMenu.add(actionManager.getCutAction());
  editMenu.add(actionManager.getCopyAction());
  editMenu.add(actionManager.getPasteAction());
  editMenu.add(actionManager.getDeleteAction());
  editMenu.addSeparator();
  editMenu.add(actionManager.getClearSourceNeuronsAction());
  editMenu.add(actionManager.getSetSourceNeuronsAction());
  editMenu.add(actionManager.getConnectionMenu());
  editMenu.add(actionManager.getAddSynapseGroupAction());
  editMenu.addSeparator();
  editMenu.add(actionManager.getRandomizeObjectsAction());
  editMenu.add(actionManager.getShowAdjustSynapsesDialog());
  editMenu.addSeparator();
  editMenu.add(actionManager.getLayoutMenu());
  editMenu.add(actionManager.getGroupMenu());
  editMenu.addSeparator();
  editMenu.add(createAlignMenu());
  editMenu.add(createSpacingMenu());
  editMenu.addSeparator();
  editMenu.add(actionManager.getSetNeuronPropertiesAction());
  editMenu.add(actionManager.getSetSynapsePropertiesAction());
  editMenu.addSeparator();
  editMenu.add(createSelectionMenu());
  return editMenu;
}

JMenu createEditMenu ( ) { JMenu editMenu = new JMenu ( "Edit" ) ; editMenu . add ( actionManager . getCutAction ( ) ) ; editMenu . add ( actionManager . getCopyAction ( ) ) ; editMenu . add ( actionManager . getPasteAction ( ) ) ; editMenu . add ( actionManager . getDeleteAction ( ) ) ; editMenu . addSeparator ( ) ; editMenu . add ( actionManager . getClearSourceNeuronsAction ( ) ) ; editMenu . add ( actionManager . getSetSourceNeuronsAction ( ) ) ; editMenu . add ( actionManager . getConnectionMenu ( ) ) ; editMenu . add ( actionManager . getAddSynapseGroupAction ( ) ) ; editMenu . addSeparator ( ) ; editMenu . add ( actionManager . getRandomizeObjectsAction ( ) ) ; editMenu . add ( actionManager . getShowAdjustSynapsesDialog ( ) ) ; editMenu . addSeparator ( ) ; editMenu . add ( actionManager . getLayoutMenu ( ) ) ; editMenu . add ( actionManager . getGroupMenu ( ) ) ; editMenu . addSeparator ( ) ; editMenu . add ( createAlignMenu ( ) ) ; editMenu . add ( createSpacingMenu ( ) ) ; editMenu . addSeparator ( ) ; editMenu . add ( actionManager . getSetNeuronPropertiesAction ( ) ) ; editMenu . add ( actionManager . getSetSynapsePropertiesAction ( ) ) ; editMenu . addSeparator ( ) ; editMenu . add ( createSelectionMenu ( ) ) ; return editMenu ; }
create and return a new edit menu for this network panel .
