This plugin is for Kawa 5 and will not work on previous versions though it
will be fairly easy to port. I decided to write this plugin since I used to
write my code in Kawa and then reopen it with the slow java editor jEdit
just to add code comments. So one night I spend some minutes in creating
this simple plugin and now I have pretty print feature in my Kawa - thanks
to folks who created jrefactory (http://jrefactory.sf.net/).
Instructions for installation:
Extract KawaPrettyPrint.jar in KAWA \plugin directory.
From "Customize" menu select "Commands" and then "Plugin Command"
Press button "New" and write down "KawaPrettyPrint" for "Menu Name"
Set "Main Class" to "org.acm.seguin.ide.kawa.KawaPrettyPrint"
If you wish KawaPrettyPrint to automaticaly beautify your source on
file save set "Arguments" to "-install" (without quotes)
Set classpath to the folder where KawaPrettyPrint is installed and to
the file jrefactory.jar located in the same directory.
If you set "Arguments" to -install you may open Options tab and
select "Execute command when Kawa starts". If you didn't set -install
option then you may wish to select "Add command to right button menu in
editor"
This method is implementation of KawaEventListener, onEvent(). It is
called by Kawa upon incoming events. KawaEventListener is installed on
KawaFile and this method is called upon KawaFileEvent.
since: 2.6.32 Parameters: event - KawaEvent
This method is called from parent. Unfortunately Kawa does not support
getting current line number and that's why setting current line number
is useless.
since: 2.6.32 Parameters: value - The new line number
Again method called from within parent class. When called buffer
contents should be replaced with text contained within value
parameter
since: 2.6.32 Parameters: value - the new contents of current buffer
Methods inherited from org.acm.seguin.pretty.PrettyPrintFromIDE