|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.acm.seguin.pretty.PrettyPrintFile
org.acm.seguin.pretty.PrettyPrintString
org.acm.seguin.pretty.PrettyPrintFromIDE
org.acm.seguin.ide.kawa.KawaPrettyPrint
public class KawaPrettyPrint
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:
| Constructor Summary | |
|---|---|
KawaPrettyPrint(boolean install)
Constructor for the KawaPrettyPrint object |
|
| Method Summary | |
|---|---|
protected int |
getLineNumber()
Returns the number of current line - Kawa does not support this - but I do!! Yes! This works now almost perfectly ;) |
protected java.lang.String |
getStringFromIDE()
Called prom parrent class this method should return contents of buffer |
static void |
main(java.lang.String[] args)
The main program for the KawaPrettyPrint class |
void |
onEvent(KawaEvent event)
This method is implementation of KawaEventListener, onEvent(). |
protected void |
setLineNumber(int value)
This method is called from parent. |
protected void |
setStringInIDE(java.lang.String value)
Again method called from within parent class. |
| Methods inherited from class org.acm.seguin.pretty.PrettyPrintFromIDE |
|---|
getPrintData, prettyPrintCurrentWindow |
| Methods inherited from class org.acm.seguin.pretty.PrettyPrintString |
|---|
getOutputBuffer, getWriter, resetOutputBuffer, setInputString |
| Methods inherited from class org.acm.seguin.pretty.PrettyPrintFile |
|---|
apply, apply, getParserFactory, isApplicable, postApply, setAsk, setParserFactory |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public KawaPrettyPrint(boolean install)
install - Has this been installed?| Method Detail |
|---|
protected void setLineNumber(int value)
setLineNumber in class PrettyPrintFromIDEvalue - The new line numberprotected void setStringInIDE(java.lang.String value)
value
parameter
setStringInIDE in class PrettyPrintFromIDEvalue - the new contents of current bufferprotected int getLineNumber()
getLineNumber in class PrettyPrintFromIDEprotected java.lang.String getStringFromIDE()
getStringFromIDE in class PrettyPrintFromIDEpublic static void main(java.lang.String[] args)
args - The command line argumentspublic void onEvent(KawaEvent event)
event - KawaEvent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||