In the example, to the created menu script at the top the submenu font with the menu items Tahoma and Verdana shall be added:
carry out the steps 1 - 6 from above.
click on the menu script on the left with the right mouse button and choose New/menu.
on the right in the array label, enter the term of the submenu (here: font).
now, click on the new submenu on the left with the right mouse button and choose New/command.
enter a CommandId on the right (e.g.: com.sowas.demo.changefont).
enter on the right as label the menu item (Tahoma).
now, click on the new submenu on the left with the right mouse button again and choose New/command.
enter the CommandId on the right again (e.g.: com.sowas.demo.changefont).
and also enter on the right as label the menu item (Verdana).
now, click on the extension org.eclipse.ui.commands on the left with the right mouse button.
fill in the commandId (com.sowas.demo.changefont) and name (ChangeFont) on the right.
now, click on defaulthandler and create a handler (e.g.: com.sowas.demo.ChangeFontHandler). The handler is the method which is called up when the user clicks on the menu item. The method must implement the Interface IHandler.
on the left, click on ChangeFont with the right mouse button and choose New/commandParameter
enter com.sowas.demo.schriftart as id on the right.
enter font as name.
in case of several parameters set optional on true.