
I am trying to add some "simple" features to a Oxygen plugin that I am developing. 1. A Menu somewhere (preferably under Preferences > Plugins > MyPluginName) that allows me to toggle between two values and save that value permanently. 2. The ability to read the currently set value that was set in the prefrences. So far I have not been able to find any examples or clear documentation on how to do either. Any assistance would be appreciated. ________________________________ This e-mail message (including any attachments) is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message (including any attachments) is strictly prohibited. If you have received this message in error, please contact the sender by reply e-mail message and destroy all copies of the original message (including attachments).

Hi Thomas, Right now there is no API which would allow you to contribute a custom preferences page in the global Oxygen Preferences dialog. Maybe we'll manage to add such an improvement in a future version. But using a Workspace Access plugin (there is a sample in the Plugins SDK) you can add your own menus to the main menu bar or your own actions to the toolbar. So you could add a custom action which would show your custom swing dialog (you can also extend "ro.sync.exml.workspace.api.standalone.ui.OKCancelDialog"). Your action can then use our API to persistent the options between sessions:
ro.sync.exml.workspace.api.standalone.StandalonePluginWorkspace.getOptionsStorage()
Regards, Radu Radu Coravu <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com On 10/11/2012 6:01 PM, Thomas, Alexander wrote:
I am trying to add some "simple" features to a Oxygen plugin that I am developing.
1.
A Menu somewhere (preferably under Preferences > Plugins > MyPluginName) that allows me to toggle between two values and save that value permanently.
2.
The ability to read the currently set value that was set in the prefrences.
So far I have not been able to find any examples or clear documentation on how to do either.
Any assistance would be appreciated.
------------------------------------------------------------------------
This e-mail message (including any attachments) is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message (including any attachments) is strictly prohibited.
If you have received this message in error, please contact the sender by reply e-mail message and destroy all copies of the original message (including attachments).
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user
participants (2)
-
Oxygen XML Editor Support
-
Thomas, Alexander