Add a costum action in contextual menu with standalone application

Oxygen general issues.
xscorpio
Posts: 3
Joined: Mon Mar 18, 2013 4:28 pm

Add a costum action in contextual menu with standalone application

Post by xscorpio »

Hello,

I want to add a costum action in my contextual menu for the stadalone application.
I saw the example for eclipse plugin (addPopUpMenuCustomizer) but i don't know how to do it for the standalone application.

Do you have an example for the standalone application please?

Regard
Radu
Posts: 9446
Joined: Fri Jul 09, 2004 5:18 pm

Re: Add a costum action in contextual menu with standalone application

Post by Radu »

Hi Cristoff,

Two ways:

1) If you already have an ExtensionsBundle implementation for your custom framework, on the callback createAuthorExtensionStateListener() create a custom AuthorExtensionStateListener (if you have not already done so).

Then on the "activated" callback call our API:

authorAccess.getEditorAccess().addPopUpMenuCustomizer....

2) Implement a Workspace Access plugin type, our Plugin SDK should contain sample Java code for this:

http://www.oxygenxml.com/oxygen_sdk.htm ... er_Plugins

The sample Java class CustomWorkspaceAccessPluginExtension in the Plugins SDK should have an example of customizing the pop-up menu.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
xscorpio
Posts: 3
Joined: Mon Mar 18, 2013 4:28 pm

Re: Add a costum action in contextual menu with standalone application

Post by xscorpio »

Hi Radu,
Thank you, it works fine :-)
Post Reply