
Hi Florent, Thanks for the suggestion, I added it as an improvement request. By the way, if you are also using Apache Log4j and use the "logger.fatal" to log problems a special Errors dialog will pop-up to present them. So you can create your own AbstractAction wrapper which catches all Throwables and uses "logger.fatal" to report them. Regards, Radu Radu Coravu <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com On 1/25/2011 11:09 PM, Florent Georges wrote:
Radu Coravu wrote:
Hi,
It's more flexible for the API to allow you to add your own Swing buttons, actions and components to toolbars and views than to offer a lot of wrapper objects over the Swing *objects*. This allows someone knowing Java Swing to develop plugins more quickly. Oh yes, we agree on that. I love the fact oXygen is giving the Swing objects directly available to plugin developers. Just maybe it would be worth adding an OxygenAction, which would add to an AbstractAction some oXygen-related tools (like an error dialog just saying "Plugin unexpected error" or something like that).
Regards,