lime.uga.edu.wsworkflow.swtInterface
Class JavaLineStyler

java.lang.Object
  extended by lime.uga.edu.wsworkflow.swtInterface.JavaLineStyler
All Implemented Interfaces:
java.util.EventListener, org.eclipse.swt.custom.LineStyleListener, org.eclipse.swt.internal.SWTEventListener

public class JavaLineStyler
extends java.lang.Object
implements org.eclipse.swt.custom.LineStyleListener


Nested Class Summary
 class JavaLineStyler.JavaScanner
          A simple fuzzy scanner for Java
 
Field Summary
(package private)  java.util.Vector blockComments
           
(package private)  org.eclipse.swt.graphics.Color[] colors
           
static int COMMENT
           
static int EOF
           
static int EOL
           
static int KEY
           
static int MAXIMUM_TOKEN
           
static int NUMBER
           
static int OTHER
           
(package private)  JavaLineStyler.JavaScanner scanner
           
static int STRING
           
(package private)  int[] tokenColors
           
static int WHITE
           
static int WORD
           
 
Constructor Summary
JavaLineStyler()
           
 
Method Summary
 void disposeColors()
           
(package private)  org.eclipse.swt.graphics.Color getColor(int type)
           
(package private)  boolean inBlockComment(int start, int end)
           
(package private)  void initializeColors()
           
 void lineGetStyle(org.eclipse.swt.custom.LineStyleEvent event)
          Event.detail line start offset (input) Event.text line text (input) LineStyleEvent.styles Enumeration of StyleRanges, need to be in order.
 void parseBlockComments(java.lang.String text)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

scanner

JavaLineStyler.JavaScanner scanner

tokenColors

int[] tokenColors

colors

org.eclipse.swt.graphics.Color[] colors

blockComments

java.util.Vector blockComments

EOF

public static final int EOF
See Also:
Constant Field Values

EOL

public static final int EOL
See Also:
Constant Field Values

WORD

public static final int WORD
See Also:
Constant Field Values

WHITE

public static final int WHITE
See Also:
Constant Field Values

KEY

public static final int KEY
See Also:
Constant Field Values

COMMENT

public static final int COMMENT
See Also:
Constant Field Values

STRING

public static final int STRING
See Also:
Constant Field Values

OTHER

public static final int OTHER
See Also:
Constant Field Values

NUMBER

public static final int NUMBER
See Also:
Constant Field Values

MAXIMUM_TOKEN

public static final int MAXIMUM_TOKEN
See Also:
Constant Field Values
Constructor Detail

JavaLineStyler

public JavaLineStyler()
Method Detail

getColor

org.eclipse.swt.graphics.Color getColor(int type)

inBlockComment

boolean inBlockComment(int start,
                       int end)

initializeColors

void initializeColors()

disposeColors

public void disposeColors()

lineGetStyle

public void lineGetStyle(org.eclipse.swt.custom.LineStyleEvent event)
Event.detail line start offset (input) Event.text line text (input) LineStyleEvent.styles Enumeration of StyleRanges, need to be in order. (output) LineStyleEvent.background line background color (output)

Specified by:
lineGetStyle in interface org.eclipse.swt.custom.LineStyleListener

parseBlockComments

public void parseBlockComments(java.lang.String text)