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 ); }
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); }
@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()); }
@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()); }
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)); }
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); }
@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); }
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); }
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 ); }
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); }
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); }
@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()); }
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); }
@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); }
@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); }
@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()); }
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); }
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); }
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); }
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); }
public void addType(final IHighlightingConfigurationAcceptor acceptor, final String s, final int r, final int g, final int b, final int br, final int bg, final int bb, final int style) { TextStyle _textStyle = new TextStyle(); final TextStyle textStyle = _textStyle; RGB _rGB = new RGB(br, bg, bb); textStyle.setBackgroundColor(_rGB); RGB _rGB_1 = new RGB(r, g, b); textStyle.setColor(_rGB_1); textStyle.setStyle(style); acceptor.acceptDefaultHighlighting(s, s, textStyle); }
public void configure(final IHighlightingConfigurationAcceptor acceptor) { this.addType(acceptor, HighlightingConfiguration.KEYWORD_ID, 0, 0, 0, SWT.BOLD); this.addType(acceptor, HighlightingConfiguration.COMMENT_ID, 128, 128, 128, SWT.ITALIC); this.addType(acceptor, HighlightingConfiguration.INTERACTOR_ID, 0, 0, 240, SWT.NORMAL); this.addType(acceptor, HighlightingConfiguration.ACTOR_ID, 175, 0, 0, SWT.NORMAL); this.addType(acceptor, HighlightingConfiguration.DATA_ID, 0, 150, 0, SWT.NORMAL); this.addType(acceptor, HighlightingConfiguration.LITERAL_ID, 150, 0, 150, SWT.NORMAL); int _bitwiseOr = (SWT.BOLD | SWT.ITALIC); this.addType(acceptor, HighlightingConfiguration.SPECIAL_ID, 255, 0, 255, _bitwiseOr); }
public void incluirTipo(IHighlightingConfigurationAcceptor acceptor, String s, RGB rgbT) { TextStyle estiloTexto = new TextStyle(); estiloTexto.setBackgroundColor(rgbT); acceptor.acceptDefaultHighlighting(s, s, estiloTexto); }
@Override public void configure(final IHighlightingConfigurationAcceptor acceptor) { super.configure(acceptor); acceptor.acceptDefaultHighlighting(JAVADOC_ID, "JavaDoc", javaDocCommentTextStyle()); }
@Override public void configure(final IHighlightingConfigurationAcceptor acceptor) { super.configure(acceptor); acceptor.acceptDefaultHighlighting(DISABLED_VALUE_ID, Messages.SemanticHighlightingConfiguration_0, disabledValue()); }
@Override public void configure(IHighlightingConfigurationAcceptor acceptor) { super.configure(acceptor); acceptor.acceptDefaultHighlighting(DEPRECATION, "Deprecation", deprecationTextStyle()); }
@Override public void configure(IHighlightingConfigurationAcceptor acceptor) { super.configure(acceptor); addElementConfiguration(acceptor, PARAM_TOKEN, 187, 29, 29, SWT.NONE); addElementConfiguration(acceptor, XEXPRESSION_TOKEN, 0, 178, 0, SWT.NONE); }
@Override public void configure(IHighlightingConfigurationAcceptor acceptor) { super.configure(acceptor); acceptor.acceptDefaultHighlighting(DESCRIPTION_ID, "Description", descriptionTextStyle()); }
public void configure(IHighlightingConfigurationAcceptor acceptor) { addType(acceptor, "exp"); }