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

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


    return textStyle;
  }

  @Override
  public TextStyle defaultTextStyle() {
    TextStyle textStyle = new TextStyle();
    textStyle.setBackgroundColor(new RGB(255, 255, 255));
    textStyle.setColor(new RGB(0, 0, 0));
    return textStyle;
  }
View Full Code Here


    textStyle.setColor(new RGB(0, 0, 0));
    return textStyle;
  }
 
  public TextStyle codeBlockTextStyle() {
    TextStyle textStyle = new TextStyle();
    textStyle.setBackgroundColor(new RGB(0xDE, 0xE5, 0xEF));
    textStyle.setColor(new RGB(0, 0, 0));
    return textStyle;
  }
View Full Code Here

    textStyle.setColor(new RGB(0, 0, 0));
    return textStyle;
  }
 
  public TextStyle emphasizedTextStyle() {
    TextStyle textStyle = defaultTextStyle().copy();
    textStyle.setStyle(SWT.ITALIC);
    return textStyle;
  }
View Full Code Here

    textStyle.setStyle(SWT.ITALIC);
    return textStyle;
  }
 
  public TextStyle codeCommentStyle() {
    TextStyle textStyle = super.commentTextStyle().copy();
    return textStyle;
  }
View Full Code Here

    TextStyle textStyle = super.commentTextStyle().copy();
    return textStyle;
  }

  public TextStyle codeKeywordStyle() {
    TextStyle textStyle = super.keywordTextStyle().copy();
    return textStyle;
  }
View Full Code Here

    acceptor.acceptDefaultHighlighting(TASK_ID, "Tasks", taskTextStyle());
  }

  public TextStyle documentationBoldStyle() {
    TextStyle textStyle = documentationPlainStyle().copy();
    // // textStyle.getFontData()[0].setHeight(12);
    // // Font f = new Font(Display.getCurrent(), "Arial", 12, SWT.BOLD);
    // // textStyle.setFontData(f.getFontData());
    // // changeHeight(textStyle, 12);
    // // modifyFontData(textStyle, 12, SWT.BOLD);
View Full Code Here

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

  public TextStyle documentationFixedStyle() {
    TextStyle textStyle = documentationStyle().copy();
    // Font f = new Font(Display.getCurrent(), "Courier", 11, SWT.NONE);
    // textStyle.setFontData(f.getFontData());
    // f.dispose();
    return textStyle;
  }
View Full Code Here

    // f.dispose();
    return textStyle;
  }

  public TextStyle documentationH1Style() {
    TextStyle textStyle = documentationPlainStyle().copy();
    // Font f = new Font(Display.getCurrent(), "Arial", 22, SWT.BOLD);
    // textStyle.setFontData(f.getFontData());
    // f.dispose();
    // textStyle.setColor(new RGB(63, 95, 191));
    // // Font f = new Font(Display.getCurrent(), "Arial", 22, SWT.BOLD);
View Full Code Here

    // // textStyle.setFontData(f.getFontData());
    return textStyle;
  }

  public TextStyle documentationH2Style() {
    TextStyle textStyle = documentationH1Style().copy();
    // // Font f = new Font(Display.getCurrent(), "Arial", 20, SWT.BOLD);
    // // textStyle.setFontData(f.getFontData());
    // modifyFontData(textStyle, 20, SWT.BOLD);
    return textStyle;
  }
View Full Code Here

    // modifyFontData(textStyle, 20, SWT.BOLD);
    return textStyle;
  }

  public TextStyle documentationH3Style() {
    TextStyle textStyle = documentationH1Style().copy();
    // // Font f = new Font(Display.getCurrent(), "Arial", 18, SWT.BOLD);
    // // textStyle.setFontData(f.getFontData());
    // modifyFontData(textStyle, 18, SWT.BOLD);
    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.