processing.app.tools
Class AutoFormat
java.lang.Object
processing.app.tools.AutoFormat
- All Implemented Interfaces:
- java.lang.Runnable, Tool
public class AutoFormat
- extends java.lang.Object
- implements Tool
Alternate handler for dealing with auto format.
Contributed by Martin Gomez, additional bug fixes by Ben Fry.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AutoFormat
public AutoFormat()
init
public void init(Editor editor)
- Specified by:
init
in interface Tool
getMenuTitle
public java.lang.String getMenuTitle()
- Specified by:
getMenuTitle
in interface Tool
comment
public void comment()
throws java.io.IOException
- Throws:
java.io.IOException
get_string
public char get_string()
throws java.io.IOException
- Throws:
java.io.IOException
indent_puts
public void indent_puts()
fprintf
public void fprintf(java.lang.String out_string)
grabLines
public int grabLines()
putcoms
public void putcoms()
cpp_comment
public void cpp_comment()
throws java.io.IOException
- Throws:
java.io.IOException
p_tabs
public void p_tabs()
getchr
public char getchr()
throws java.io.IOException
- Throws:
java.io.IOException
gotelse
public void gotelse()
getnl
public int getnl()
throws java.io.IOException
- Throws:
java.io.IOException
lookup
public int lookup(java.lang.String keyword)
lookup_com
public int lookup_com(java.lang.String keyword)
run
public void run()
- Specified by:
run
in interface java.lang.Runnable
- Specified by:
run
in interface Tool