Page 1 of 1

Add a costum action in contextual menu with standalone application

Posted: Mon Mar 18, 2013 4:32 pm
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

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

Posted: Mon Mar 18, 2013 4:42 pm
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

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

Posted: Tue Mar 19, 2013 4:14 pm
by xscorpio
Hi Radu,
Thank you, it works fine :-)