Package org.pentaho.libformula.ui.editor
Class LibFormulaValuesHighlight
java.lang.Object
org.pentaho.libformula.ui.editor.LibFormulaValuesHighlight
- All Implemented Interfaces:
EventListener
,org.eclipse.swt.custom.LineStyleListener
,org.eclipse.swt.internal.SWTEventListener
public class LibFormulaValuesHighlight
extends Object
implements org.eclipse.swt.custom.LineStyleListener
This class provides color coding for recognized keywords, values, numbers, functions, strings, etc.
- Since:
- 2008-dec-17
- Author:
- matt
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
A simple fuzzy scanner for LibFormula -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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
(String text)
-
Field Details
-
EOF
public static final int EOF- See Also:
-
EOL
public static final int EOL- See Also:
-
WORD
public static final int WORD- See Also:
-
WHITE
public static final int WHITE- See Also:
-
KEY
public static final int KEY- See Also:
-
COMMENT
public static final int COMMENT- See Also:
-
STRING
public static final int STRING- See Also:
-
OTHER
public static final int OTHER- See Also:
-
NUMBER
public static final int NUMBER- See Also:
-
VALUESNAME
public static final int VALUESNAME- See Also:
-
MAXIMUM_TOKEN
public static final int MAXIMUM_TOKEN- See Also:
-
-
Constructor Details
-
LibFormulaValuesHighlight
public LibFormulaValuesHighlight() -
LibFormulaValuesHighlight
-
-
Method Details
-
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 interfaceorg.eclipse.swt.custom.LineStyleListener
-
parseBlockComments
-