Plugins can be accessed by calling them from the GRT Shell. For
more information on this topic see
Section 9.3, “The Shell”. You can also add
entries to the main_menu.xml
file, found in
the C:\Program Files\MySQL\MySQL Workbench
directory.
version
\data
To determine how to add entries to the
main_menu.xml
file, open it in a text editor
and search for Plugins Menu
. Performing this
search takes you to the top level Plugins
entry. Beneath this entry find a sample submenu entry that has
been commented out. This entry should look something like the
following:
<value type="object" struct-name="app.MenuItem" id="com.mysql.wb.menu.plugins.plugin_name
"> <link type="object" key="owner" struct-name="app.MenuItem">com.mysql.wb.menu.plugins</link> <value type="string" key="name">menu_name
</value> <value type="string" key="caption">menu_caption
</value> <value type="string" key="itemType">cascade</value> <value type="list" key="subItems" content-type="object" content-struct-name="app.MenuItem"> </value>
Use this entry as a guideline for creating submenus under the Plugins top level menu entry.
Ensure that any XML added to the
main_menu.xml
file is well-formed,
otherwise MySQL Workbench may crash on startup.