Page 1 of 1
Plugins with non-XML documents
Posted: Mon Jun 02, 2008 9:49 am
by jelovirt
It seems that selection plugins cannot be used with for example plain text or Python files. The context menu has the Plugins menu only for documents that are XML. Could plugin support be extended to non-XML documents too?
Re: Plugins with non-XML documents
Posted: Mon Jun 02, 2008 10:01 am
by sorin_ristache
Hello,
We will consider extending the plugins support to non XML files in a future version.
Thank you for your suggestion,
Sorin
Re: Plugins with non-XML documents
Posted: Mon Jun 02, 2008 12:08 pm
by Radu
Dear Jarno,
Just wanted to let you know that we fixed the limitation and you will probably have access to defined plugins also in the non-XML editors in the upcoming Oxygen 9.3 (couple of weeks)
Regards,
Radu
Re: Plugins with non-XML documents
Posted: Mon Jun 02, 2008 2:59 pm
by jelovirt
Radu wrote:Just wanted to let you know that we fixed the limitation and you will probably have access to defined plugins also in the non-XML editors in the upcoming Oxygen...
If you have plans to develop the plugin API further, one feature I'd like to see for selection plugins. Currently you can only get the selection with getSelect(), but I'd like to see a feature that would allow you to extend that selection. My use case is a plugin that does sorting, and if I have
f
oo
bar
baz
and the text in bold was selected, when I run sort, the result is
f
ba
bar
ooz
Thus, I'd like for the plugin to be able to extend the selection to beginning of the first line and the end of the last line.
Re: Plugins with non-XML documents
Posted: Mon Jun 02, 2008 3:17 pm
by Radu
Hi,
We will look into how the plugins functionality can be improved to allow more complex handling.
Regards,
Radu
Re: Plugins with non-XML documents
Posted: Fri Feb 12, 2010 1:41 pm
by Radu
Hi Jarno,
In Oxygen 11.2 which will get released probably at the end of March there will be the possibility to implement a Workspace Access plugin which will have enhanced access to all opened editors and in the editors to the Text and Author pages. For the Text page the plugin will have access to the swing Document and will have a number of methods to manipulate the caret position, selection interval.
After the 11.2 release the Workspace Access plugin along with a sample implementation will be available in the Plugins section here:
http://www.oxygenxml.com/developer.html
Regards,
Radu