processing.app.tools
Class AutoFormat

java.lang.Object
  extended by 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.


Constructor Summary
AutoFormat()
           
 
Method Summary
 void comment()
           
 void cpp_comment()
           
 void fprintf(java.lang.String out_string)
           
 char get_string()
           
 char getchr()
           
 java.lang.String getMenuTitle()
           
 int getnl()
           
 void gotelse()
           
 int grabLines()
           
 void indent_puts()
           
 void init(Editor editor)
           
 int lookup_com(java.lang.String keyword)
           
 int lookup(java.lang.String keyword)
           
 void p_tabs()
           
 void putcoms()
           
 void run()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutoFormat

public AutoFormat()
Method Detail

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