Editor.MainMenu

The main menu module for manipulating main menu items.

Methods

Editor.MainMenu.apply ()

Apply main menu changes.

Editor.MainMenu.add ( path, template )

Build a template into menu item and add it to path

Editor.MainMenu.init ()

Init main menu.

Editor.MainMenu.remove ( path )

Remove menu item at path.

Editor.MainMenu.set ( path, options )

Set options of a menu item at path.

Editor.MainMenu.update ( path, template )

Build a template into menu item and update it to path

Properties

Editor.MainMenu.menu

Get main menu instance for debug purpose

IPC Messages

Message: 'main-menu:add'

Message: 'main-menu:apply'

Message: 'main-menu:init'

Message: 'main-menu:remove'

Message: 'main-menu:set'

Message: 'main-menu:update'