Class DSLHighlightingConfiguration
- java.lang.Object
-
- org.eclipse.xtext.ui.editor.syntaxcoloring.DefaultHighlightingConfiguration
-
- de.gebit.integrity.ui.highlighting.DSLHighlightingConfiguration
-
- All Implemented Interfaces:
org.eclipse.xtext.ui.editor.syntaxcoloring.IHighlightingConfiguration
public class DSLHighlightingConfiguration extends org.eclipse.xtext.ui.editor.syntaxcoloring.DefaultHighlightingConfigurationCustom highlighting configuration.- Author:
- Rene Schneider - initial API and implementation
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCONSTANT_VALUE_IDThe ID for constant, predefined values (like "true" or "false").static java.lang.StringDOCUMENTATION_COMMENT_IDThe ID for IntegrityDoc comments.static java.lang.StringJAVA_CLASS_HIGHLIGHT_IDThe ID for Java classes (highlighted parts).static java.lang.StringJAVA_CLASS_IDThe ID for Java classes.static java.lang.StringJAVA_METHOD_HIGHLIGHT_IDThe ID for Java method names (highlighted parts).static java.lang.StringNESTED_OBJECT_KEY_IDThe ID for nested object keys.static java.lang.StringPACKAGE_PREFIX_IDThe ID for package prefixes.static java.lang.StringPARAMETER_CONSTANT_VALUE_IDThe ID for constant, predefined values (like "true" or "false") used as a parameter.static java.lang.StringPARAMETER_DATE_TIME_IDThe ID for date/time used as a parameter.static java.lang.StringPARAMETER_NAME_IDThe ID for parameters.static java.lang.StringPARAMETER_NESTED_OBJECT_IDThe ID for nested objects used as a parameter.static java.lang.StringPARAMETER_NESTED_OBJECT_KEY_IDThe ID for nested object keys used as a parameter.static java.lang.StringPARAMETER_NUMBER_IDThe ID for numbers used as a parameter.static java.lang.StringPARAMETER_OPERATION_IDThe ID for operations used as a parameter.static java.lang.StringPARAMETER_OPERATION_IDENTIFIER_IDThe ID for the operation identifier used as a parameter.static java.lang.StringPARAMETER_REGEX_IDThe ID for strings used as a parameter.static java.lang.StringPARAMETER_STRING_IDThe ID for strings used as a parameter.static java.lang.StringPARAMETER_VARIABLE_VALUE_IDThe ID for variables used as a parameter.static java.lang.StringREGEX_IDThe ID for regexes.static java.lang.StringRESULT_CONSTANT_VALUE_IDThe ID for constant, predefined values (like "true" or "false") used as a test result.static java.lang.StringRESULT_DATE_TIME_IDThe ID for date/time used as a test result.static java.lang.StringRESULT_NAME_IDThe ID for parameters.static java.lang.StringRESULT_NESTED_OBJECT_IDThe ID for nested objects used as a test result.static java.lang.StringRESULT_NESTED_OBJECT_KEY_IDThe ID for nested object keys used as a test result.static java.lang.StringRESULT_NUMBER_IDThe ID for numbers used as a test result.static java.lang.StringRESULT_OPERATION_IDThe ID for operations used as a test result.static java.lang.StringRESULT_OPERATION_IDENTIFIER_IDThe ID for the operation identifier used as a result.static java.lang.StringRESULT_REGEX_IDThe ID for strings used as a test result.static java.lang.StringRESULT_STRING_IDThe ID for strings used as a test result.static java.lang.StringRESULT_VARIABLE_VALUE_IDThe ID for variables used as a test result.static java.lang.StringVARIABLE_VALUE_IDThe ID for variables used as a test result.static java.lang.StringVISIBLE_COMMENT_IDThe ID for visible comments.static java.lang.StringVISIBLE_DIVIDER_IDThe ID for visible dividers.static java.lang.StringVISIBLE_TITLE_COMMENT_IDThe ID for visible title comments.
-
Constructor Summary
Constructors Constructor Description DSLHighlightingConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(org.eclipse.xtext.ui.editor.syntaxcoloring.IHighlightingConfigurationAcceptor anAcceptor)Configures highlighting styles for the IDs.org.eclipse.xtext.ui.editor.utils.TextStyleconstantValueTextStyle()Creates a text style to use for constant values.org.eclipse.xtext.ui.editor.utils.TextStyledocumentationCommentTextStyle()Creates a text style to use for documentation comments.org.eclipse.xtext.ui.editor.utils.TextStylejavaClassHighlightTextStyle()Creates a text style used for Java classes (highlighted parts).org.eclipse.xtext.ui.editor.utils.TextStylejavaClassTextStyle()Creates a text style used for Java classes.org.eclipse.xtext.ui.editor.utils.TextStylejavaMethodHighlightTextStyle()Creates a text style used for Java classes (highlighted parts).org.eclipse.xtext.ui.editor.utils.TextStylenestedObjectKeyTextStyle()Creates a text style to use for nested objects used neither as parameter nor result.org.eclipse.xtext.ui.editor.utils.TextStylenumberTextStyle()org.eclipse.xtext.ui.editor.utils.TextStylepackageTextStyle()Creates a text style to use for packages.org.eclipse.xtext.ui.editor.utils.TextStyleparameterConstantValueTextStyle()Creates a text style to use for constant values used as parameters.org.eclipse.xtext.ui.editor.utils.TextStyleparameterDateTimeTextStyle()Creates a text style to use for strings used as parameters.org.eclipse.xtext.ui.editor.utils.TextStyleparameterNameTextStyle()Creates a text style to use for parameters.org.eclipse.xtext.ui.editor.utils.TextStyleparameterNestedObjectKeyTextStyle()Creates a text style to use for nested objects used as parameters.org.eclipse.xtext.ui.editor.utils.TextStyleparameterNestedObjectTextStyle()Creates a text style to use for nested objects used as parameters.org.eclipse.xtext.ui.editor.utils.TextStyleparameterNumberTextStyle()Creates a text style to use for numbers used as test or call parameters.org.eclipse.xtext.ui.editor.utils.TextStyleparameterOperationIdentifierTextStyle()Creates a text style to use for operation identifiers used as parameters.org.eclipse.xtext.ui.editor.utils.TextStyleparameterOperationTextStyle()Creates a text style to use for operations used as parameters.org.eclipse.xtext.ui.editor.utils.TextStyleparameterRegexTextStyle()Creates a text style to use for regex used as parameters.org.eclipse.xtext.ui.editor.utils.TextStyleparameterStringTextStyle()Creates a text style to use for strings used as parameters.org.eclipse.xtext.ui.editor.utils.TextStyleparameterVariableValueTextStyle()Creates a text style to use for variables used as parameters.org.eclipse.xtext.ui.editor.utils.TextStyleregexTextStyle()Creates a text style to use for regexes.org.eclipse.xtext.ui.editor.utils.TextStyleresultConstantValueTextStyle()Creates a text style to use for constant values used as test results.org.eclipse.xtext.ui.editor.utils.TextStyleresultDateTimeTextStyle()Creates a text style to use for strings used as test results.org.eclipse.xtext.ui.editor.utils.TextStyleresultNameTextStyle()Creates a text style to use for parameters.org.eclipse.xtext.ui.editor.utils.TextStyleresultNestedObjectKeyTextStyle()Creates a text style to use for nested objects used as test results.org.eclipse.xtext.ui.editor.utils.TextStyleresultNestedObjectTextStyle()Creates a text style to use for nested objects used as test results.org.eclipse.xtext.ui.editor.utils.TextStyleresultNumberTextStyle()Creates a text style to use for numbers used as test results.org.eclipse.xtext.ui.editor.utils.TextStyleresultOperationIdentifierTextStyle()Creates a text style to use for operation identifiers used as test results.org.eclipse.xtext.ui.editor.utils.TextStyleresultOperationTextStyle()Creates a text style to use for operations used as test results.org.eclipse.xtext.ui.editor.utils.TextStyleresultRegexTextStyle()Creates a text style to use for regex used as test results.org.eclipse.xtext.ui.editor.utils.TextStyleresultStringTextStyle()Creates a text style to use for strings used as test results.org.eclipse.xtext.ui.editor.utils.TextStyleresultVariableValueTextStyle()Creates a text style to use for variables used as test results.org.eclipse.xtext.ui.editor.utils.TextStylestringTextStyle()org.eclipse.xtext.ui.editor.utils.TextStylevariableValueTextStyle()Creates a text style to use for variable values.org.eclipse.xtext.ui.editor.utils.TextStylevisibleCommentTextStyle()Creates a text style to use for visible comments.org.eclipse.xtext.ui.editor.utils.TextStylevisibleDividerTextStyle()Creates a text style to use for visible dividers.org.eclipse.xtext.ui.editor.utils.TextStylevisibleTitleCommentTextStyle()Creates a text style to use for visible title comments.
-
-
-
Field Detail
-
VISIBLE_COMMENT_ID
public static final java.lang.String VISIBLE_COMMENT_ID
The ID for visible comments.- See Also:
- Constant Field Values
-
VISIBLE_TITLE_COMMENT_ID
public static final java.lang.String VISIBLE_TITLE_COMMENT_ID
The ID for visible title comments.- See Also:
- Constant Field Values
-
DOCUMENTATION_COMMENT_ID
public static final java.lang.String DOCUMENTATION_COMMENT_ID
The ID for IntegrityDoc comments.- See Also:
- Constant Field Values
-
VISIBLE_DIVIDER_ID
public static final java.lang.String VISIBLE_DIVIDER_ID
The ID for visible dividers.- See Also:
- Constant Field Values
-
CONSTANT_VALUE_ID
public static final java.lang.String CONSTANT_VALUE_ID
The ID for constant, predefined values (like "true" or "false").- See Also:
- Constant Field Values
-
PARAMETER_NAME_ID
public static final java.lang.String PARAMETER_NAME_ID
The ID for parameters.- See Also:
- Constant Field Values
-
RESULT_NAME_ID
public static final java.lang.String RESULT_NAME_ID
The ID for parameters.- See Also:
- Constant Field Values
-
PACKAGE_PREFIX_ID
public static final java.lang.String PACKAGE_PREFIX_ID
The ID for package prefixes.- See Also:
- Constant Field Values
-
RESULT_CONSTANT_VALUE_ID
public static final java.lang.String RESULT_CONSTANT_VALUE_ID
The ID for constant, predefined values (like "true" or "false") used as a test result.- See Also:
- Constant Field Values
-
PARAMETER_CONSTANT_VALUE_ID
public static final java.lang.String PARAMETER_CONSTANT_VALUE_ID
The ID for constant, predefined values (like "true" or "false") used as a parameter.- See Also:
- Constant Field Values
-
RESULT_NUMBER_ID
public static final java.lang.String RESULT_NUMBER_ID
The ID for numbers used as a test result.- See Also:
- Constant Field Values
-
PARAMETER_NUMBER_ID
public static final java.lang.String PARAMETER_NUMBER_ID
The ID for numbers used as a parameter.- See Also:
- Constant Field Values
-
RESULT_STRING_ID
public static final java.lang.String RESULT_STRING_ID
The ID for strings used as a test result.- See Also:
- Constant Field Values
-
RESULT_REGEX_ID
public static final java.lang.String RESULT_REGEX_ID
The ID for strings used as a test result.- See Also:
- Constant Field Values
-
PARAMETER_STRING_ID
public static final java.lang.String PARAMETER_STRING_ID
The ID for strings used as a parameter.- See Also:
- Constant Field Values
-
PARAMETER_REGEX_ID
public static final java.lang.String PARAMETER_REGEX_ID
The ID for strings used as a parameter.- See Also:
- Constant Field Values
-
VARIABLE_VALUE_ID
public static final java.lang.String VARIABLE_VALUE_ID
The ID for variables used as a test result.- See Also:
- Constant Field Values
-
RESULT_VARIABLE_VALUE_ID
public static final java.lang.String RESULT_VARIABLE_VALUE_ID
The ID for variables used as a test result.- See Also:
- Constant Field Values
-
PARAMETER_VARIABLE_VALUE_ID
public static final java.lang.String PARAMETER_VARIABLE_VALUE_ID
The ID for variables used as a parameter.- See Also:
- Constant Field Values
-
RESULT_DATE_TIME_ID
public static final java.lang.String RESULT_DATE_TIME_ID
The ID for date/time used as a test result.- See Also:
- Constant Field Values
-
PARAMETER_DATE_TIME_ID
public static final java.lang.String PARAMETER_DATE_TIME_ID
The ID for date/time used as a parameter.- See Also:
- Constant Field Values
-
JAVA_CLASS_ID
public static final java.lang.String JAVA_CLASS_ID
The ID for Java classes.- See Also:
- Constant Field Values
-
JAVA_CLASS_HIGHLIGHT_ID
public static final java.lang.String JAVA_CLASS_HIGHLIGHT_ID
The ID for Java classes (highlighted parts).- See Also:
- Constant Field Values
-
JAVA_METHOD_HIGHLIGHT_ID
public static final java.lang.String JAVA_METHOD_HIGHLIGHT_ID
The ID for Java method names (highlighted parts).- See Also:
- Constant Field Values
-
RESULT_OPERATION_ID
public static final java.lang.String RESULT_OPERATION_ID
The ID for operations used as a test result.- See Also:
- Constant Field Values
-
PARAMETER_OPERATION_ID
public static final java.lang.String PARAMETER_OPERATION_ID
The ID for operations used as a parameter.- See Also:
- Constant Field Values
-
RESULT_OPERATION_IDENTIFIER_ID
public static final java.lang.String RESULT_OPERATION_IDENTIFIER_ID
The ID for the operation identifier used as a result.- See Also:
- Constant Field Values
-
PARAMETER_OPERATION_IDENTIFIER_ID
public static final java.lang.String PARAMETER_OPERATION_IDENTIFIER_ID
The ID for the operation identifier used as a parameter.- See Also:
- Constant Field Values
-
RESULT_NESTED_OBJECT_ID
public static final java.lang.String RESULT_NESTED_OBJECT_ID
The ID for nested objects used as a test result.- See Also:
- Constant Field Values
-
PARAMETER_NESTED_OBJECT_ID
public static final java.lang.String PARAMETER_NESTED_OBJECT_ID
The ID for nested objects used as a parameter.- See Also:
- Constant Field Values
-
RESULT_NESTED_OBJECT_KEY_ID
public static final java.lang.String RESULT_NESTED_OBJECT_KEY_ID
The ID for nested object keys used as a test result.- See Also:
- Constant Field Values
-
PARAMETER_NESTED_OBJECT_KEY_ID
public static final java.lang.String PARAMETER_NESTED_OBJECT_KEY_ID
The ID for nested object keys used as a parameter.- See Also:
- Constant Field Values
-
NESTED_OBJECT_KEY_ID
public static final java.lang.String NESTED_OBJECT_KEY_ID
The ID for nested object keys.- See Also:
- Constant Field Values
-
REGEX_ID
public static final java.lang.String REGEX_ID
The ID for regexes.- See Also:
- Constant Field Values
-
-
Method Detail
-
configure
public void configure(org.eclipse.xtext.ui.editor.syntaxcoloring.IHighlightingConfigurationAcceptor anAcceptor)
Configures highlighting styles for the IDs.- Specified by:
configurein interfaceorg.eclipse.xtext.ui.editor.syntaxcoloring.IHighlightingConfiguration- Overrides:
configurein classorg.eclipse.xtext.ui.editor.syntaxcoloring.DefaultHighlightingConfiguration
-
stringTextStyle
public org.eclipse.xtext.ui.editor.utils.TextStyle stringTextStyle()
- Overrides:
stringTextStylein classorg.eclipse.xtext.ui.editor.syntaxcoloring.DefaultHighlightingConfiguration
-
regexTextStyle
public org.eclipse.xtext.ui.editor.utils.TextStyle regexTextStyle()
Creates a text style to use for regexes.- Returns:
-
visibleCommentTextStyle
public org.eclipse.xtext.ui.editor.utils.TextStyle visibleCommentTextStyle()
Creates a text style to use for visible comments.- Returns:
- the style
-
visibleTitleCommentTextStyle
public org.eclipse.xtext.ui.editor.utils.TextStyle visibleTitleCommentTextStyle()
Creates a text style to use for visible title comments.- Returns:
- the style
-
documentationCommentTextStyle
public org.eclipse.xtext.ui.editor.utils.TextStyle documentationCommentTextStyle()
Creates a text style to use for documentation comments.- Returns:
- the style
-
visibleDividerTextStyle
public org.eclipse.xtext.ui.editor.utils.TextStyle visibleDividerTextStyle()
Creates a text style to use for visible dividers.- Returns:
- the style
-
parameterNameTextStyle
public org.eclipse.xtext.ui.editor.utils.TextStyle parameterNameTextStyle()
Creates a text style to use for parameters.- Returns:
- the style
-
resultNameTextStyle
public org.eclipse.xtext.ui.editor.utils.TextStyle resultNameTextStyle()
Creates a text style to use for parameters.- Returns:
- the style
-
packageTextStyle
public org.eclipse.xtext.ui.editor.utils.TextStyle packageTextStyle()
Creates a text style to use for packages.- Returns:
- the style
-
numberTextStyle
public org.eclipse.xtext.ui.editor.utils.TextStyle numberTextStyle()
- Overrides:
numberTextStylein classorg.eclipse.xtext.ui.editor.syntaxcoloring.DefaultHighlightingConfiguration
-
resultNumberTextStyle
public org.eclipse.xtext.ui.editor.utils.TextStyle resultNumberTextStyle()
Creates a text style to use for numbers used as test results.- Returns:
-
parameterNumberTextStyle
public org.eclipse.xtext.ui.editor.utils.TextStyle parameterNumberTextStyle()
Creates a text style to use for numbers used as test or call parameters.- Returns:
-
resultStringTextStyle
public org.eclipse.xtext.ui.editor.utils.TextStyle resultStringTextStyle()
Creates a text style to use for strings used as test results.- Returns:
-
parameterStringTextStyle
public org.eclipse.xtext.ui.editor.utils.TextStyle parameterStringTextStyle()
Creates a text style to use for strings used as parameters.- Returns:
-
resultRegexTextStyle
public org.eclipse.xtext.ui.editor.utils.TextStyle resultRegexTextStyle()
Creates a text style to use for regex used as test results.- Returns:
-
parameterRegexTextStyle
public org.eclipse.xtext.ui.editor.utils.TextStyle parameterRegexTextStyle()
Creates a text style to use for regex used as parameters.- Returns:
-
resultDateTimeTextStyle
public org.eclipse.xtext.ui.editor.utils.TextStyle resultDateTimeTextStyle()
Creates a text style to use for strings used as test results.- Returns:
-
parameterDateTimeTextStyle
public org.eclipse.xtext.ui.editor.utils.TextStyle parameterDateTimeTextStyle()
Creates a text style to use for strings used as parameters.- Returns:
-
constantValueTextStyle
public org.eclipse.xtext.ui.editor.utils.TextStyle constantValueTextStyle()
Creates a text style to use for constant values.- Returns:
-
resultConstantValueTextStyle
public org.eclipse.xtext.ui.editor.utils.TextStyle resultConstantValueTextStyle()
Creates a text style to use for constant values used as test results.- Returns:
-
parameterConstantValueTextStyle
public org.eclipse.xtext.ui.editor.utils.TextStyle parameterConstantValueTextStyle()
Creates a text style to use for constant values used as parameters.- Returns:
-
variableValueTextStyle
public org.eclipse.xtext.ui.editor.utils.TextStyle variableValueTextStyle()
Creates a text style to use for variable values.- Returns:
-
resultVariableValueTextStyle
public org.eclipse.xtext.ui.editor.utils.TextStyle resultVariableValueTextStyle()
Creates a text style to use for variables used as test results.- Returns:
-
parameterVariableValueTextStyle
public org.eclipse.xtext.ui.editor.utils.TextStyle parameterVariableValueTextStyle()
Creates a text style to use for variables used as parameters.- Returns:
-
javaClassTextStyle
public org.eclipse.xtext.ui.editor.utils.TextStyle javaClassTextStyle()
Creates a text style used for Java classes.- Returns:
-
javaClassHighlightTextStyle
public org.eclipse.xtext.ui.editor.utils.TextStyle javaClassHighlightTextStyle()
Creates a text style used for Java classes (highlighted parts).- Returns:
-
javaMethodHighlightTextStyle
public org.eclipse.xtext.ui.editor.utils.TextStyle javaMethodHighlightTextStyle()
Creates a text style used for Java classes (highlighted parts).- Returns:
-
resultOperationTextStyle
public org.eclipse.xtext.ui.editor.utils.TextStyle resultOperationTextStyle()
Creates a text style to use for operations used as test results.- Returns:
-
parameterOperationTextStyle
public org.eclipse.xtext.ui.editor.utils.TextStyle parameterOperationTextStyle()
Creates a text style to use for operations used as parameters.- Returns:
-
resultOperationIdentifierTextStyle
public org.eclipse.xtext.ui.editor.utils.TextStyle resultOperationIdentifierTextStyle()
Creates a text style to use for operation identifiers used as test results.- Returns:
-
parameterOperationIdentifierTextStyle
public org.eclipse.xtext.ui.editor.utils.TextStyle parameterOperationIdentifierTextStyle()
Creates a text style to use for operation identifiers used as parameters.- Returns:
-
resultNestedObjectTextStyle
public org.eclipse.xtext.ui.editor.utils.TextStyle resultNestedObjectTextStyle()
Creates a text style to use for nested objects used as test results.- Returns:
-
parameterNestedObjectTextStyle
public org.eclipse.xtext.ui.editor.utils.TextStyle parameterNestedObjectTextStyle()
Creates a text style to use for nested objects used as parameters.- Returns:
-
resultNestedObjectKeyTextStyle
public org.eclipse.xtext.ui.editor.utils.TextStyle resultNestedObjectKeyTextStyle()
Creates a text style to use for nested objects used as test results.- Returns:
-
parameterNestedObjectKeyTextStyle
public org.eclipse.xtext.ui.editor.utils.TextStyle parameterNestedObjectKeyTextStyle()
Creates a text style to use for nested objects used as parameters.- Returns:
-
nestedObjectKeyTextStyle
public org.eclipse.xtext.ui.editor.utils.TextStyle nestedObjectKeyTextStyle()
Creates a text style to use for nested objects used neither as parameter nor result.- Returns:
-
-