Hi Thomas,
Form a selection plugin you could just present a dialog with the
possible choices when the plugin is activated. If you want to
customize the menu then you would probably have to implement an
workspace access plugin. More information about this type of
plugin can be found here:
http://www.oxygenxml.com/doc/ug-editor/concepts/workspace-access-plugin.html
On the applicationStarted() callback you will have to obtain
access to an WSEditor (for example using
StandalonePluginWorkspace.getEditorAccess()). You should also
listen for notifications when a new editor is opened. Once you
have a WSEditor instance you can use it to obtain the current page
(through WSEditor.getCurrentPage()). This will either be an
instance of WSAuthorEditorPageBase (if you are in author mode) or
an instance of WSTextEditorPage (if you are in text mode). Now you
can use one of the addPopUpMenuCustomizer() methods you've already
identified. The editor page offers API to detect the current
selection, for example :
WSTextBasedEditorPage.getSelectionStart().
Please let us know if you require additional information.
Best regards,
Alex
--
Alex Jitianu
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
On 26-Oct-12 11:00 PM, Thomas, Alexander wrote: