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

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


    textStyle.setStyle(TextAttribute.UNDERLINE);
    return textStyle;
  }

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


  protected RGB grey() {
    return new RGB(125, 125, 125);
  }
 
  private TextStyle tagTextStyle() {
    TextStyle textStyle = nodeTextStyle().copy();
    textStyle.setStyle(TextAttribute.UNDERLINE);
    textStyle.setColor(grey());
    return textStyle;
  }
View Full Code Here

    textStyle.setColor(grey());
    return textStyle;
  }
 
  public TextStyle codeTextStyle() {
    TextStyle result = super.defaultTextStyle().copy();
    result.setColor(ColorScheme.CODE);
    return result;
  }
View Full Code Here

    result.setColor(ColorScheme.CODE);
    return result;
  }
 
  public TextStyle codeAnnotationTextStyle() {
    TextStyle textStyle = super.defaultTextStyle().copy();
    textStyle.setColor(ColorScheme.ANNOTATION);
    return textStyle;
  }
View Full Code Here

    textStyle.setColor(ColorScheme.ANNOTATION);
    return textStyle;
  }
 
  public TextStyle keywordTextStyle() {
    TextStyle textStyle = super.defaultTextStyle().copy();
    textStyle.setColor(ColorScheme.KEYWORD);
    textStyle.setStyle(SWT.BOLD);
    return textStyle;
  }
View Full Code Here

    return textStyle;
  }
 
  @Override
  public TextStyle defaultTextStyle() {
    TextStyle result = super.defaultTextStyle().copy();
    FontData fontData = new FontData();
    fontData.setName(JFaceResources.TEXT_FONT);
    fontData.setHeight(DEFAULT_FONT_SIZE);
    result.setFontData(fontData)
    return result;
  }
View Full Code Here

    result.setFontData(fontData)
    return result;
  }
 
  public TextStyle numberTextStyle() {
    TextStyle textStyle = super.defaultTextStyle().copy();
    textStyle.setColor(ColorScheme.NUMBER);
    return textStyle;
  }
View Full Code Here

    textStyle.setColor(ColorScheme.NUMBER);
    return textStyle;
  }

  public TextStyle stringTextStyle() {
    TextStyle textStyle = super.defaultTextStyle().copy();
    textStyle.setColor(ColorScheme.STRING);
    return textStyle;
  }
View Full Code Here

    textStyle.setColor(ColorScheme.STRING);
    return textStyle;
  }

  public TextStyle commentTextStyle() {
    TextStyle textStyle = super.defaultTextStyle().copy();
    textStyle.setColor(ColorScheme.COMMENT);
    return textStyle;
  }
View Full Code Here

      String name, TextStyle defaultTextStyle) {
    acceptor.acceptDefaultHighlighting(name, name, defaultTextStyle);
  }

  public TextStyle getHeaderTextStyle(int height) {
    TextStyle textStyle = new TextStyle();
    textStyle.setBackgroundColor(new RGB(255, 255, 255));
    textStyle.setColor(new RGB(0, 0, 0));
    FontData fd = new FontData();
    fd.setHeight(height);
    fd.setStyle(SWT.BOLD);
    textStyle.setFontData(fd);
    return textStyle;
  }
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.