Plugins with non-XML documents

Having trouble installing Oxygen? Got a bug to report? Post it all here.
jelovirt
Posts: 84
Joined: Tue Oct 11, 2005 9:17 am
Location: Helsinki, Finland
Contact:

Plugins with non-XML documents

Post 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?
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Plugins with non-XML documents

Post 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
Radu
Posts: 9445
Joined: Fri Jul 09, 2004 5:18 pm

Re: Plugins with non-XML documents

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
jelovirt
Posts: 84
Joined: Tue Oct 11, 2005 9:17 am
Location: Helsinki, Finland
Contact:

Re: Plugins with non-XML documents

Post 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

foo
bar
ba
z

and the text in bold was selected, when I run sort, the result is

fba
bar
oo
z

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.
Radu
Posts: 9445
Joined: Fri Jul 09, 2004 5:18 pm

Re: Plugins with non-XML documents

Post by Radu »

Hi,

We will look into how the plugins functionality can be improved to allow more complex handling.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Radu
Posts: 9445
Joined: Fri Jul 09, 2004 5:18 pm

Re: Plugins with non-XML documents

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply