Page 1 of 1
customized contextual menu in outline window
Posted: Mon Jun 29, 2015 6:21 pm
by LBarth
Hi,
I have developed a plugin in which I have customized the contextual menu of the main editor window.
I would like to customize the contextual menu of the outline window to give my users the same functionalities in both windows.
I have checked the sdk sample in simple.documentation.framework.extensions but I'm a bit lost.
Is the fact I work on a plugin instead of a framework makes a difference ?
Is there a plugin extension customized contextual menu in outline window sample somewhere ?
Best regards,
Lionel
Re: customized contextual menu in outline window
Posted: Tue Jun 30, 2015 9:40 am
by Radu
Hi Lionel,
Indeed right now an Outline popup menu can only be customized from a framework configuration, by overwriting the method:
Code: Select all
ro.sync.ecss.extensions.api.ExtensionsBundle.createAuthorOutlineCustomizer()
in the custom extensions bundle implementation set for the framework configuration:
http://www.oxygenxml.com/doc/versions/1 ... undle.html
If it is necessary for you to do this from a plugin I could try to add an issue to allow for this in a future version.
Regards,
Radu
Re: customized contextual menu in outline window
Posted: Fri Oct 28, 2016 11:47 am
by Radu
Hi,
Oxygen 18.1 which we released a couple of weeks ago has special API to customize outline/breadcrumb popup menus from the plugin side:
Code: Select all
((StandalonePluginWorkspace)PluginWorkspaceProvider.getPluginWorkspace()).addMenusAndToolbarsContributorCustomizer(
new MenusAndToolbarsContributorCustomizer() {
/**
* @see ro.sync.exml.workspace.api.standalone.actions.MenusAndToolbarsContributorCustomizer#customizeAuthorOutlinePopUpMenu(javax.swing.JPopupMenu, ro.sync.ecss.extensions.api.AuthorAccess)
*/
@Override
public void customizeAuthorOutlinePopUpMenu(JPopupMenu popUp, AuthorAccess authorAccess) {
// TODO
}
/**
* @see ro.sync.exml.workspace.api.standalone.actions.MenusAndToolbarsContributorCustomizer#customizeAuthorBreadcrumbPopUpMenu(javax.swing.JPopupMenu, ro.sync.ecss.extensions.api.AuthorAccess, ro.sync.ecss.extensions.api.node.AuthorNode)
*/
@Override
public void customizeAuthorBreadcrumbPopUpMenu(JPopupMenu popUp,
AuthorAccess authorAccess, AuthorNode currentNode) {
// TODO
}
});
Regards,
Radu