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

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


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

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


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

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

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

  public TextStyle documentationItalicStyle() {
    TextStyle textStyle = documentationPlainStyle().copy();
    // // Font f = new Font(Display.getCurrent(), "Arial", 12, SWT.ITALIC);
    // // textStyle.setFontData(f.getFontData());
    // // modifyFontData(textStyle, 12, SWT.ITALIC);
    // textStyle.setStyle(SWT.ITALIC);
    return textStyle;
View Full Code Here

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

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

    // textStyle.setColor(new RGB(63, 95, 191));
    return textStyle;
  }

  public TextStyle documentationStyle() {
    TextStyle textStyle = defaultTextStyle().copy();
    textStyle.setColor(new RGB(63, 95, 191));
    return textStyle;
  }
View Full Code Here

    textStyle.setColor(new RGB(63, 95, 191));
    return textStyle;
  }

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

    fd.setStyle(style);
    textStyle.setFontData(fd);
  }

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

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

  public TextStyle propertyTextStyle() {
    TextStyle textStyle = defaultTextStyle().copy();
    textStyle.setColor(new RGB(0x99, 0x33, 0x00)); // Brownish
    return textStyle;

  }
View Full Code Here

    return textStyle;

  }

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

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

  public TextStyle regexpTextStyle() {
    TextStyle textStyle = defaultTextStyle().copy();
    textStyle.setColor(new RGB(0, 0, 192));
    textStyle.setStyle(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.