Allow plugins to add menu items in Gerrit's top menu entries
So far plugins could only add own top menu entries. With this change
it is now possible to extend a Gerrit top menu entry and add new
menu items to it.
Some menu items are added only after a callback to the server is
done. To ensure a stable order of the menu items when menu items
are added by plugins, we now ensure in the callback that the menu item
is always inserted at the same position and menu items contributed by
plugins come after it.
Change-Id: Ia3589b02785e5c6172a89116fb17a21954dff5f0
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
3 files changed