question: private JMenu createInsertMenu ( ) { JMenu insertMenu = new JMenu ( "Insert" ) ; insertMenu . add ( actionManager . getNewNetworkAction ( ) ) ; JMenu newGaugeSubMenu = new JMenu ( "New Plot" ) ; for ( Action action : actionManager . getPlotActions ( ) ) { newGaugeSubMenu . add ( action ) ; } insertMenu . add ( newGaugeSubMenu ) ; JMenu newWorldSubMenu = new JMenu ( "New World" ) ; for ( Action action : actionManager . getNewWorldActions ( ) ) { newWorldSubMenu . add ( action ) ; } insertMenu . add ( newWorldSubMenu ) ; insertMenu . addSeparator ( ) ; insertMenu . add ( actionManager . getNewDocViewerAction ( ) ) ; insertMenu . add ( actionManager . getNewConsoleAction ( ) ) ; return insertMenu ; }
target:  Create the workspace insert menu.