/** * {@inheritDoc} */ @Override public ContextMenu doContextMenu(StaplerRequest request, StaplerResponse response) throws Exception { return getContextMenu(""); }
/** * {@inheritDoc} */ @Override public ContextMenu doContextMenu(StaplerRequest request, StaplerResponse response) throws Exception { return getContextMenu(""); }
/** * {@inheritDoc} */ // In the general case we would implement ModelObjectWithChildren as the child actions could be viewed as children // but in this case we expose them in the sidebar, so they are more correctly part of the context menu. @Override public ContextMenu doContextMenu(StaplerRequest request, StaplerResponse response) throws Exception { ContextMenu menu = new ContextMenu(); for (CredentialsStoreAction action : getStoreActions()) { ContextMenuIconUtils.addMenuItem( menu, "store", action, action.getContextMenu(ContextMenuIconUtils.buildUrl("store", action.getUrlName())) ); } return menu; }
/** * {@inheritDoc} */ // In the general case we would implement ModelObjectWithChildren as the child actions could be viewed as children // but in this case we expose them in the sidebar, so they are more correctly part of the context menu. @Override public ContextMenu doContextMenu(StaplerRequest request, StaplerResponse response) throws Exception { ContextMenu menu = new ContextMenu(); for (CredentialsStoreAction action : getStoreActions()) { ContextMenuIconUtils.addMenuItem( menu, "store", action, action.getContextMenu(ContextMenuIconUtils.buildUrl("store", action.getUrlName())) ); } return menu; }