本文整理汇总了Java中org.eclipse.xtext.ui.editor.syntaxcoloring.IHighlightingConfigurationAcceptor类的典型用法代码示例。如果您正苦于以下问题:Java IHighlightingConfigurationAcceptor类的具体用法?Java IHighlightingConfigurationAcceptor怎么用?Java IHighlightingConfigurationAcceptor使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
IHighlightingConfigurationAcceptor类属于org.eclipse.xtext.ui.editor.syntaxcoloring包,在下文中一共展示了IHighlightingConfigurationAcceptor类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: configure
import org.eclipse.xtext.ui.editor.syntaxcoloring.IHighlightingConfigurationAcceptor; //导入依赖的package包/类
public void configure(IHighlightingConfigurationAcceptor acceptor) {
addType( acceptor, STRING, 255, 0, 204, NORMAL );
addType( acceptor, COMMENT_SINGLE, 255, 132, 0, NORMAL );
addType( acceptor, COMMENT_MULTI, 204, 0, 0, NORMAL );
addType( acceptor, NUMBER, 255, 0, 0, NORMAL );
addType( acceptor, KEYWORD, 0, 0, 0, BOLD );
addType( acceptor, SYMBOL, 0, 102, 153, NORMAL );
addType( acceptor, RESERVED_WORD, 204, 0, 204, NORMAL );
addType( acceptor, INTERNAL_ACTION, 204, 102, 0, NORMAL );
addType( acceptor, PLAN, 0, 0, 255, NORMAL );
addType( acceptor, PLAN_NAME, 255, 0, 0, NORMAL );
addType( acceptor, BELIEF, 2, 185, 2, NORMAL );
addType( acceptor, ATOM, 102, 0, 204, NORMAL );
addType( acceptor, VARIABLE, 153, 0, 204, NORMAL );
addType( acceptor, MATH_OPERATOR, 0, 0, 0, NORMAL );
}
示例2: configure
import org.eclipse.xtext.ui.editor.syntaxcoloring.IHighlightingConfigurationAcceptor; //导入依赖的package包/类
public void configure(IHighlightingConfigurationAcceptor acceptor) {
addType(acceptor, WORD, 50, 0, 0, SWT.NORMAL);
addType(acceptor, MARKER, 50, 50, 0, SWT.NORMAL);
addType(acceptor, SENTENCE, 50, 50, 100, SWT.NORMAL);
addType(acceptor, AMBIVALENCE, 00, 0, 0, NORMAL);
addType(acceptor, LEMMA_CASE, 50, 0, 0, NORMAL);
addType(acceptor, EXPANDED, 00, 0, 0, NORMAL);
addType(acceptor, EMANDATION, 00, 0, 0, NORMAL);
addType(acceptor, DISPUTABLE_READING, 00, 0, 0, NORMAL);
addType(acceptor, LACUNA, 00, 0, 0, NORMAL);
addType(acceptor, DELETION, 00, 0, 0, NORMAL);
addType(acceptor, EXPANDED_COLUMN, 00, 0, 0, NORMAL);
addType(acceptor, RASUR, 00, 0, 0, NORMAL);
addType(acceptor, ANCIENT_EXPANDED, 00, 0, 0, NORMAL);
addType(acceptor, RESTORATION_OVER_RASUR, 00, 0, 0, NORMAL);
addType(acceptor, PARTIAL_DESTRUCTION, 00, 0, 0, NORMAL);
addType(acceptor, DESTRUCTION, 00, 0, 0, NORMAL);
}
示例3: configure
import org.eclipse.xtext.ui.editor.syntaxcoloring.IHighlightingConfigurationAcceptor; //导入依赖的package包/类
@Override
public void configure(final IHighlightingConfigurationAcceptor acceptor) {
acceptor.acceptDefaultHighlighting(KEYWORD_ID, "Statement keywords", keywordTextStyle());
acceptor.acceptDefaultHighlighting(PUNCTUATION_ID, "Punctuation characters", punctuationTextStyle());
acceptor.acceptDefaultHighlighting(OPERATOR_ID, "Operators & action calls", operatorTextStyle());
acceptor.acceptDefaultHighlighting(RESERVED_ID, "Reserved symbols", reservedTextStyle());
acceptor.acceptDefaultHighlighting(COMMENT_ID, "Comments", commentTextStyle());
acceptor.acceptDefaultHighlighting(STRING_ID, "Strings", stringTextStyle());
acceptor.acceptDefaultHighlighting(NUMBER_ID, "Literal constants", numberTextStyle());
acceptor.acceptDefaultHighlighting(DEFAULT_ID, "Default", defaultTextStyle());
acceptor.acceptDefaultHighlighting(FACET_ID, "Facet keys", facetTextStyle());
acceptor.acceptDefaultHighlighting(VARIABLE_ID, "Variables used in expressions", variableTextStyle());
acceptor.acceptDefaultHighlighting(VARDEF_ID, "Variables definitions", varDefTextStyle());
acceptor.acceptDefaultHighlighting(TYPE_ID, "Type", typeTextStyle());
acceptor.acceptDefaultHighlighting(ASSIGN_ID, "Assignment signs", assignTextStyle());
acceptor.acceptDefaultHighlighting(UNIT_ID, "Unit names", unitTextStyle());
acceptor.acceptDefaultHighlighting(TASK_ID, "Tasks", taskTextStyle());
acceptor.acceptDefaultHighlighting(PRAGMA_ID, "Pragma", pragmaTextStyle());
}
示例4: configure
import org.eclipse.xtext.ui.editor.syntaxcoloring.IHighlightingConfigurationAcceptor; //导入依赖的package包/类
@Override
public void configure(IHighlightingConfigurationAcceptor acceptor) {
// acceptor.acceptDefaultHighlighting(KEYWORD_ID, "Keyword", keywordTextStyle());
acceptor.acceptDefaultHighlighting(PUNCTUATION_ID, "Punctuation character", punctuationTextStyle());
acceptor.acceptDefaultHighlighting(COMMENT_ID, "Comment", commentTextStyle());
acceptor.acceptDefaultHighlighting(TASK_ID, "Task Tag", taskTextStyle());
acceptor.acceptDefaultHighlighting(STRING_ID, "String", stringTextStyle());
acceptor.acceptDefaultHighlighting(NUMBER_ID, "Number", numberTextStyle());
acceptor.acceptDefaultHighlighting(DEFAULT_ID, "Default", defaultTextStyle());
acceptor.acceptDefaultHighlighting(INVALID_TOKEN_ID, "Invalid Symbol", errorTextStyle());
acceptor.acceptDefaultHighlighting(REGEX_ID, "Regular Expression", regExTextStyle());
acceptor.acceptDefaultHighlighting(TEMPLATE_ID, "Template Text", literalTextStyle());
acceptor.acceptDefaultHighlighting(TEMPLATE_DELIMITER_ID, "Template Delimiter", templateDelimiterTextStyle());
acceptor.acceptDefaultHighlighting(ANNOTATION_ID, "Annotation", annotationTextStyle());
acceptor.acceptDefaultHighlighting(TYPE_REF_ID, "Type Reference", typeRefTextStyle());
acceptor.acceptDefaultHighlighting(IDENTIFIER_ID, "Identifier", defaultTextStyle());
acceptor.acceptDefaultHighlighting(IDENTIFIER_REF_ID, "Reference", defaultTextStyle());
acceptor.acceptDefaultHighlighting(ENUM_LITERAL_ID, "Enum Literal", defaultTextStyle());
acceptor.acceptDefaultHighlighting(TYPE_VARIABLE_ID, "Type Variable", defaultTextStyle());
acceptor.acceptDefaultHighlighting(JS_DOC_ID, "JSDoc Comment", jsDocTextStyle());
acceptor.acceptDefaultHighlighting(ES5_KW_ID, "ES5 Keywords", keywordTextStyle());
acceptor.acceptDefaultHighlighting(ES6_KW_ID, "ES6 Keywords", keywordTextStyle());
acceptor.acceptDefaultHighlighting(FUTURE_KW_ID, "Reserved words", keywordTextStyle());
acceptor.acceptDefaultHighlighting(N4JS_KW_ID, "N4JS Keywords", keywordTextStyle());
acceptor.acceptDefaultHighlighting(NULL_LITERAL_ID, "Null literals", keywordTextStyle());
acceptor.acceptDefaultHighlighting(BOOLEAN_LITERAL_ID, "Boolean literals", keywordTextStyle());
}
示例5: configure
import org.eclipse.xtext.ui.editor.syntaxcoloring.IHighlightingConfigurationAcceptor; //导入依赖的package包/类
public void configure(IHighlightingConfigurationAcceptor acceptor) {
//se utiliza un ID �nico para que se pueda acceder desde la clase Calculator
incluirTipo(acceptor, NORMAL, new RGB(0, 0, 0), new RGB(255, 255, 255), SWT.NORMAL);
incluirTipo(acceptor, CADENA_TEXTO, new RGB(0, 0, 255), new RGB(255, 255, 255), SWT.NORMAL);
incluirTipo(acceptor, PALABRA_CLAVE, new RGB(228, 11, 111), new RGB(255, 255, 255), SWT.BOLD);
incluirTipo(acceptor, PALABRA_CLAVE_PRINCIPAL, new RGB(255, 20, 20), new RGB(255, 255, 255), SWT.BOLD);
incluirTipo(acceptor, REFERENCIA_CRUZADA, new RGB(208, 200, 200), new RGB(255, 255, 255), SWT.ITALIC);
incluirTipo(acceptor, COMENTARIO, new RGB(150, 200, 200), new RGB(255, 255, 255), SWT.NORMAL);
incluirTipo(acceptor, NUMERO, new RGB(115, 237, 185), new RGB(255, 255, 255), SWT.NORMAL);
incluirTipo(acceptor, ID, new RGB(14, 4, 40), new RGB(242, 236, 236), SWT.NORMAL);
incluirTipo(acceptor, FONDO_CABECERA, new RGB(251, 238, 217));
}
示例6: incluirTipo
import org.eclipse.xtext.ui.editor.syntaxcoloring.IHighlightingConfigurationAcceptor; //导入依赖的package包/类
public void incluirTipo(IHighlightingConfigurationAcceptor acceptor, String s, RGB rgbD, RGB rgbT, int estilo) {
TextStyle estiloTexto = new TextStyle();
estiloTexto.setColor(rgbD);
estiloTexto.setBackgroundColor(rgbT);
estiloTexto.setStyle(estilo);
//FontData f = new FontData();
//f.setHeight(7);
//textStyle.setFontData(f);
acceptor.acceptDefaultHighlighting(s, s, estiloTexto);
}
示例7: configure
import org.eclipse.xtext.ui.editor.syntaxcoloring.IHighlightingConfigurationAcceptor; //导入依赖的package包/类
@Override
public void configure(IHighlightingConfigurationAcceptor acceptor) {
// TODO Auto-generated method stub
super.configure(acceptor);
addType(acceptor, "Page", 100, 100, 100, SWT.BOLD);
addType(acceptor, "Question", 150, 150, 150, SWT.BOLD);
addType(acceptor, "Enumeration", 0, 185, 185, SWT.BOLD);
}
示例8: addType
import org.eclipse.xtext.ui.editor.syntaxcoloring.IHighlightingConfigurationAcceptor; //导入依赖的package包/类
public void addType( IHighlightingConfigurationAcceptor acceptor, String s, int r, int g, int b, int style )
{
TextStyle textStyle = new TextStyle();
textStyle.setBackgroundColor(new RGB(255, 255, 255));
textStyle.setColor(new RGB(r, g, b));
textStyle.setStyle(style);
//textStyle.setFontData(new FontData("courier", 14, style));
acceptor.acceptDefaultHighlighting(s, s, textStyle);
}
示例9: configure
import org.eclipse.xtext.ui.editor.syntaxcoloring.IHighlightingConfigurationAcceptor; //导入依赖的package包/类
public void configure(IHighlightingConfigurationAcceptor acceptor) {
addType( acceptor, STRING, 255, 0, 204, NORMAL );
addType( acceptor, COMMENT_SINGLE, 255, 132, 0, NORMAL );
addType( acceptor, COMMENT_MULTI, 204, 0, 0, NORMAL );
addType( acceptor, NUMBER, 255, 0, 0, NORMAL );
addType( acceptor, SYMBOL, 0, 0, 255, NORMAL );
addType( acceptor, RESERVED_WORD, 102, 0, 204, NORMAL );
addType( acceptor, KEYWORD, 0, 0, 255, NORMAL );
addType( acceptor, PREDEFINED_PARAM, 204, 0, 204, NORMAL );
}
示例10: addType
import org.eclipse.xtext.ui.editor.syntaxcoloring.IHighlightingConfigurationAcceptor; //导入依赖的package包/类
public void addType( IHighlightingConfigurationAcceptor acceptor, String s, int r, int g, int b, int style) {
TextStyle textStyle = new TextStyle();
//textStyle.setBackgroundColor(new RGB(255, 255, 255));
textStyle.setColor(new RGB(r, g, b));
textStyle.setStyle(style);
acceptor.acceptDefaultHighlighting(s, s, textStyle);
}
示例11: addType
import org.eclipse.xtext.ui.editor.syntaxcoloring.IHighlightingConfigurationAcceptor; //导入依赖的package包/类
public void addType(IHighlightingConfigurationAcceptor acceptor, String s,
int r, int g, int b, int style) {
TextStyle textStyle = new TextStyle();
textStyle.setBackgroundColor(new RGB(255, 255, 255));
textStyle.setColor(new RGB(r, g, b));
textStyle.setStyle(style);
acceptor.acceptDefaultHighlighting(s, s, textStyle);
}
示例12: configure
import org.eclipse.xtext.ui.editor.syntaxcoloring.IHighlightingConfigurationAcceptor; //导入依赖的package包/类
@Override
public void configure(IHighlightingConfigurationAcceptor acceptor) {
acceptor.acceptDefaultHighlighting(SPEC, SPEC , specStyle());
acceptor.acceptDefaultHighlighting(SCENARIO, SCENARIO, scenarioStyle());
acceptor.acceptDefaultHighlighting(STEP, STEP , stepStyle());
acceptor.acceptDefaultHighlighting(STATIC_PARAM, STATIC_PARAM, staticParamStyle());
acceptor.acceptDefaultHighlighting(DYNAMIC_PARAM, DYNAMIC_PARAM, dynamicParamStyle());
acceptor.acceptDefaultHighlighting(TAGS, TAGS, getTagsStyle());
acceptor.acceptDefaultHighlighting(DEFAULT, DEFAULT , defaultTextStyle());
}
示例13: addElementConfiguration
import org.eclipse.xtext.ui.editor.syntaxcoloring.IHighlightingConfigurationAcceptor; //导入依赖的package包/类
public void addElementConfiguration(IHighlightingConfigurationAcceptor acceptor, String s, int r, int g, int b, int style) {
TextStyle textStyle = new TextStyle();
textStyle.setBackgroundColor(new RGB(255, 255, 255));
textStyle.setColor(new RGB(r, g, b));
textStyle.setStyle(style);
acceptor.acceptDefaultHighlighting(s, s, textStyle);
}
示例14: configure
import org.eclipse.xtext.ui.editor.syntaxcoloring.IHighlightingConfigurationAcceptor; //导入依赖的package包/类
@Override
public void configure(IHighlightingConfigurationAcceptor acceptor) {
super.configure(acceptor);
addElementConfiguration(acceptor, PARAM_TOKEN, 187, 29, 29, SWT.BOLD);
addElementConfiguration(acceptor, VARIABLE_TOKEN, 0, 0, 255, SWT.BOLD);
addElementConfiguration(acceptor, FIELD_TOKEN, 0, 178, 0, SWT.BOLD);
addElementConfiguration(acceptor, FUNCTION_METHOD, 0, 0, 0, SWT.ITALIC);
addElementConfiguration(acceptor, RESOURCE_BUNDLE_KEY, 102, 46, 153, SWT.BOLD);
}
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:10,代码来源:JavaJRExpressionHighlightingConfiguration.java
示例15: addElementConfiguration
import org.eclipse.xtext.ui.editor.syntaxcoloring.IHighlightingConfigurationAcceptor; //导入依赖的package包/类
public void addElementConfiguration(IHighlightingConfigurationAcceptor acceptor, String s,
int r, int g, int b, int style) {
TextStyle textStyle = new TextStyle();
textStyle.setBackgroundColor(new RGB(255, 255, 255));
textStyle.setColor(new RGB(r, g, b));
textStyle.setStyle(style);
acceptor.acceptDefaultHighlighting(s, s, textStyle);
}
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:9,代码来源:JavaJRExpressionHighlightingConfiguration.java