OpenOffice/NetBeans Integration from a Warsaw NetBeans Platform Student
By Geertjan-Oracle on Feb 17, 2009
Its aim is to copy the content of the NetBeans editor to RTF documents. Michał reports that he has tested it with NetBeans IDE 6.5, together with several of the popular RTF editors: OpenOffice Writer, Impress, and Microsoft Word. He also tells me the following:
After installation of this module the following will be added: (1) new option "Copy as RTF format" in popup menu, when you select editor content, (2) new options panel, where you can choose the profile formatting for copy, paste, font and size, while there are also two options for copying, either with highlighting or with only static formatting.
The plugin can be downloaded here:
I must say it works really well! Select something in the editor, right-click, choose "Copy as RTF format", and then paste into one of the aforementioned document types. That gets you the following, in the case of OpenOffice Writer:
You can also customize what happens when you paste the text:
What's interesting when you look in the layer file is that many different types of editors are supported, including Python, for example. I especially recommend the TransferHandler, for anyone who is interested in drag and drop behavior.
One thing I would change is: the popup menu item in the editor should be disabled, if the user hasn't selected anything. Even better, if no text is selected at all, the menu item should be disabled.
But, great work, Mike! You've definitely qualified as a NetBeans Platform Certified Engineer!