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
Nested Classes Modifier and Type Class Description class
LibFormulaValuesHighlight.LibFormulaScanner
A simple fuzzy scanner for LibFormula
-
Constructor Summary
Constructors Constructor Description LibFormulaValuesHighlight()
LibFormulaValuesHighlight(String[] valueNames)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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(String text)
-
-
-
Field Detail
-
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
-
VALUESNAME
public static final int VALUESNAME
- See Also:
- Constant Field Values
-
MAXIMUM_TOKEN
public static final int MAXIMUM_TOKEN
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LibFormulaValuesHighlight
public LibFormulaValuesHighlight()
-
LibFormulaValuesHighlight
public LibFormulaValuesHighlight(String[] valueNames)
-
-
Method Detail
-
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
public void parseBlockComments(String text)
-
-