|
From: John G. <jge...@ny...> - 2001-08-22 22:15:38
|
> 2) Also, I've been having a heck of a time figuring out where the > JavaStylePlugin class is (so I can call it from a macro). Judging by > the source code in CVS it should be in the javastyle package, but > JavaInsight doesn't show me that. I tried calling it based on what CVS > says and BeanShell told me that it couldn't find the static method > beautify(aView,aBuffer,boolean). I wonder whether the source code is up to date; I can't find beautify.label antwhere. In any event, the beautify action uses a different idiom from most plugins. Try this: jstyle = new javastyle(); jstyle.invoke(view); // or if you don't want error dialogs: jstyle.invoke(view, view.getBuffer(), false); > > 3) Another strange thing that I assume is somehow my fault... when I > enter BeanShell commands (even 2+2) I get this message in the > Activity Log: > [error] AWT-EventQueue-0: Exception occurred during event dispatching: > [error] AWT-EventQueue-0: java.lang.NoSuchMethodError It's not you. The BeanShell shell is broken. Console 3.0 is on the way. John |