Package org.eclipse.xtext.ui.editor.utils

Examples of org.eclipse.xtext.ui.editor.utils.TextStyle


    textStyle.setColor(new RGB(128, 0, 0));
    return textStyle;
  }

  public TextStyle stringTextStyle() {
    TextStyle textStyle = defaultTextStyle().copy();
    textStyle.setColor(new RGB(42, 0, 255));
    return textStyle;
  }
View Full Code Here


    textStyle.setColor(new RGB(42, 0, 255));
    return textStyle;
  }

  public TextStyle commentTextStyle() {
    TextStyle textStyle = defaultTextStyle().copy();
    textStyle.setColor(new RGB(127, 127, 127));
    return textStyle;
  }
View Full Code Here

    textStyle.setColor(new RGB(127, 127, 127));
    return textStyle;
  }

  public TextStyle keywordTextStyle() {
    TextStyle textStyle = defaultTextStyle().copy();
    textStyle.setColor(new RGB(63, 127, 63));
    textStyle.setStyle(SWT.BOLD);
    return textStyle;
  }
View Full Code Here

    textStyle.setStyle(SWT.BOLD);
    return textStyle;
  }

  public TextStyle punctuationTextStyle() {
    TextStyle textStyle = defaultTextStyle().copy();
    return textStyle;
  }
View Full Code Here

 
  public TextStyle getUriStyle(){
    return numberTextStyle().copy();
  }
  public TextStyle getUnresolvableUriStyle(){
    TextStyle style= getUriStyle().copy();
    style.setStyle(SWT.ITALIC);
    return style;
  }
View Full Code Here

    TextStyle style= getUriStyle().copy();
    style.setStyle(SWT.ITALIC);
    return style;
  }
  public TextStyle getPrefixStyle(){
    TextStyle style= defaultTextStyle().copy();
    return style;
  }
View Full Code Here

  public TextStyle getPrefixStyle(){
    TextStyle style= defaultTextStyle().copy();
    return style;
  }
  public TextStyle getClassStyle(){
    TextStyle style= defaultTextStyle().copy();
    return style;
  }
View Full Code Here

  public TextStyle getClassStyle(){
    TextStyle style= defaultTextStyle().copy();
    return style;
  }
  public TextStyle getPropertyStyle(){
    TextStyle style= defaultTextStyle().copy();
    return style;
  }
View Full Code Here

  public final static String TEXT = "template.text";
 
  public final static String ESCAPE = "teamplate.escape";
 
  public void configure(final IHighlightingConfigurationAcceptor acceptor) {
    TextStyle _staticText = this.staticText();
    acceptor.acceptDefaultHighlighting(TemplateHighlightingConfiguration.TEXT, "Text", _staticText);
    TextStyle _staticEscape = this.staticEscape();
    acceptor.acceptDefaultHighlighting(TemplateHighlightingConfiguration.ESCAPE, "Statement/Expression Escape Symbols", _staticEscape);
    final IHighlightingConfigurationAcceptor _function = new IHighlightingConfigurationAcceptor() {
      public void acceptDefaultHighlighting(final String id, final String name, final TextStyle style) {
        RGB _rGB = new RGB(230, 230, 230);
        style.setBackgroundColor(_rGB);
View Full Code Here

    };
    super.configure(_function);
  }
 
  public TextStyle staticText() {
    TextStyle _defaultTextStyle = this.defaultTextStyle();
    TextStyle _copy = _defaultTextStyle.copy();
    final Procedure1<TextStyle> _function = new Procedure1<TextStyle>() {
      public void apply(final TextStyle it) {
        RGB _rGB = new RGB(0, 0, 0);
        it.setColor(_rGB);
      }
View Full Code Here

TOP

Related Classes of org.eclipse.xtext.ui.editor.utils.TextStyle

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.