当前位置: 首页>>代码示例>>Java>>正文


Java IHighlightingConfigurationAcceptor.acceptDefaultHighlighting方法代码示例

本文整理汇总了Java中org.eclipse.xtext.ui.editor.syntaxcoloring.IHighlightingConfigurationAcceptor.acceptDefaultHighlighting方法的典型用法代码示例。如果您正苦于以下问题:Java IHighlightingConfigurationAcceptor.acceptDefaultHighlighting方法的具体用法?Java IHighlightingConfigurationAcceptor.acceptDefaultHighlighting怎么用?Java IHighlightingConfigurationAcceptor.acceptDefaultHighlighting使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.eclipse.xtext.ui.editor.syntaxcoloring.IHighlightingConfigurationAcceptor的用法示例。


在下文中一共展示了IHighlightingConfigurationAcceptor.acceptDefaultHighlighting方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: 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());
}
 
开发者ID:gama-platform,项目名称:gama,代码行数:20,代码来源:GamlHighlightingConfiguration.java

示例2: 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());
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:28,代码来源:HighlightingConfiguration.java

示例3: 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);
}
 
开发者ID:vicegd,项目名称:org.xtext.dsl.restaurante,代码行数:11,代码来源:RestauranteHighlightingConfiguration.java

示例4: 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);
}
 
开发者ID:TodorovicNikola,项目名称:SurveyDSL,代码行数:10,代码来源:QueryITHighlightingConfiguration.java

示例5: 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);
}
 
开发者ID:jason-lang,项目名称:jason-eclipse-plugin,代码行数:8,代码来源:Mas2jHighlightingConfiguration.java

示例6: 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);
}
 
开发者ID:cplutte,项目名称:bts,代码行数:9,代码来源:BTSHighlightingConfiguration.java

示例7: 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());
}
 
开发者ID:getgauge-contrib,项目名称:Gauge-Eclipse,代码行数:11,代码来源:SpecHighlightingConfiguration.java

示例8: 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,代码行数:8,代码来源:SqlHighlightingConfiguration.java

示例9: 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

示例10: configure

import org.eclipse.xtext.ui.editor.syntaxcoloring.IHighlightingConfigurationAcceptor; //导入方法依赖的package包/类
@Override
public void configure(IHighlightingConfigurationAcceptor acceptor) {
    super.configure(acceptor);
    TextStyle textStyle = new TextStyle();
    textStyle.setBackgroundColor(new RGB(255, 255, 255));
    textStyle.setColor(new RGB(42, 0, 255));
    textStyle.setFontData(new FontData("Consolas-regular", 10, SWT.BOLD));
    acceptor.acceptDefaultHighlighting(REFERRED_VARIABLES, REFERRED_VARIABLES, textStyle);
}
 
开发者ID:SSEHUB,项目名称:EASyProducer,代码行数:10,代码来源:VilHighlightingConfiguration.java

示例11: configure

import org.eclipse.xtext.ui.editor.syntaxcoloring.IHighlightingConfigurationAcceptor; //导入方法依赖的package包/类
@Override
public void configure(IHighlightingConfigurationAcceptor acceptor) {
    super.configure(acceptor);

    acceptor.acceptDefaultHighlighting(URI_ID, "URI", uriTextStyle());
    acceptor.acceptDefaultHighlighting(CLASS_ID, "Class", classTextStyle());
    acceptor.acceptDefaultHighlighting(INSTANCE_ID, "Instance", instanceTextStyle());
    acceptor.acceptDefaultHighlighting(VARIABLE_ID, "Variable", variableTextStyle());
    acceptor.acceptDefaultHighlighting(DATA_PROPERTY_ID, "Data Property", dataPropertyTextStyle());
    acceptor.acceptDefaultHighlighting(OBJECT_PROPERTY_ID, "Object Property", objectPropertyTextStyle());
    acceptor.acceptDefaultHighlighting(ANNOTATION_PROPERTY_ID, "Annotation Property", annotationPropertyTextStyle());
    acceptor.acceptDefaultHighlighting(RDFDATATYPE_ID, "RDF Data Type", userDefinedDatatypeTextStyle());
}
 
开发者ID:crapo,项目名称:sadlos2,代码行数:14,代码来源:SadlHighlightingConfiguration.java

示例12: addType

import org.eclipse.xtext.ui.editor.syntaxcoloring.IHighlightingConfigurationAcceptor; //导入方法依赖的package包/类
public void addType( IHighlightingConfigurationAcceptor acceptor, String s)  {
 TextStyle textStyle = new TextStyle();
 textStyle.setBackgroundColor(new RGB(255, 255, 255));
 textStyle.setColor(new RGB(50, 0, 0));
 textStyle.setStyle(SWT.BOLD);
 acceptor.acceptDefaultHighlighting(s, s, textStyle);
}
 
开发者ID:diverse-project,项目名称:k3,代码行数:8,代码来源:ExpHighlightingConfiguration.java

示例13: configure

import org.eclipse.xtext.ui.editor.syntaxcoloring.IHighlightingConfigurationAcceptor; //导入方法依赖的package包/类
public void configure(final IHighlightingConfigurationAcceptor acceptor) {
  super.configure(acceptor);
  TextStyle _myCommentTextStyle = this.myCommentTextStyle();
  acceptor.acceptDefaultHighlighting(DialogScriptHighlightingConfiguration.MY_COMMENT_ID, "SemanticComment", _myCommentTextStyle);
  TextStyle _defaultTextStyle = this.defaultTextStyle();
  acceptor.acceptDefaultHighlighting(DialogScriptHighlightingConfiguration.ID_IS_KEYWORD, "KeywordAsId", _defaultTextStyle);
  TextStyle _crossRefStringStyle = this.crossRefStringStyle();
  acceptor.acceptDefaultHighlighting(DialogScriptHighlightingConfiguration.CROSSREF_STRING, "CrossrefString", _crossRefStringStyle);
  TextStyle _sceneNameStyle = this.sceneNameStyle();
  acceptor.acceptDefaultHighlighting(DialogScriptHighlightingConfiguration.SCENE_NAME, "SceneName", _sceneNameStyle);
  TextStyle _hubNameStyle = this.hubNameStyle();
  acceptor.acceptDefaultHighlighting(DialogScriptHighlightingConfiguration.HUB_NAME, "HubName", _hubNameStyle);
}
 
开发者ID:RobertWalter83,项目名称:DialogScriptDSL,代码行数:14,代码来源:DialogScriptHighlightingConfiguration.java

示例14: configure

import org.eclipse.xtext.ui.editor.syntaxcoloring.IHighlightingConfigurationAcceptor; //导入方法依赖的package包/类
public void configure(final IHighlightingConfigurationAcceptor acceptor) {
  super.configure(acceptor);
  TextStyle _myCommentTextStyle = this.myCommentTextStyle();
  acceptor.acceptDefaultHighlighting(CharacterScriptHighlightingConfiguration.MY_COMMENT_ID, "SemanticComment", _myCommentTextStyle);
  TextStyle _featureKeywordTextStyle = this.featureKeywordTextStyle();
  acceptor.acceptDefaultHighlighting(CharacterScriptHighlightingConfiguration.FEATURE_KEYWORD, "FeatureKeyword", _featureKeywordTextStyle);
}
 
开发者ID:RobertWalter83,项目名称:DialogScriptDSL,代码行数:8,代码来源:CharacterScriptHighlightingConfiguration.java

示例15: addType

import org.eclipse.xtext.ui.editor.syntaxcoloring.IHighlightingConfigurationAcceptor; //导入方法依赖的package包/类
public void addType(final IHighlightingConfigurationAcceptor acceptor, final String s, final int r, final int g, final int b, final int style) {
  TextStyle _textStyle = new TextStyle();
  final TextStyle textStyle = _textStyle;
  RGB _rGB = new RGB(255, 255, 255);
  textStyle.setBackgroundColor(_rGB);
  RGB _rGB_1 = new RGB(r, g, b);
  textStyle.setColor(_rGB_1);
  textStyle.setStyle(style);
  acceptor.acceptDefaultHighlighting(s, s, textStyle);
}
 
开发者ID:crubier,项目名称:lil,代码行数:11,代码来源:HighlightingConfiguration.java


注:本文中的org.eclipse.xtext.ui.editor.syntaxcoloring.IHighlightingConfigurationAcceptor.acceptDefaultHighlighting方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。