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

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


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

  public TextStyle resourceRefTextStyle() {
    TextStyle textStyle = defaultTextStyle().copy();
    textStyle.setColor(new RGB(128, 0, 0)); // cayenne brown
    return textStyle;
  }
View Full Code Here


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

  public TextStyle resourceTitleTextStyle() {
    TextStyle textStyle = new TextStyle();
    textStyle.setStyle(SWT.ITALIC);
    return textStyle;
  }
View Full Code Here

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

  public TextStyle specialSpaceTextStyle() {
    TextStyle textStyle = defaultTextStyle().copy();
    // Affects what is behind the text and WS
    textStyle.setBackgroundColor(new RGB(255, 204, 102)); // light orange
    return textStyle;
  }
View Full Code Here

    textStyle.setBackgroundColor(new RGB(255, 204, 102)); // light orange
    return textStyle;
  }

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

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

  public TextStyle templateTextStyle() {
    TextStyle textStyle = stringTextStyle().copy();
    // textStyle.setColor(new RGB(63, 95, 191));
    // Affects what is behind the text and WS - important since this is a verbatim style
    // and whitespace counts.
    // textStyle.setBackgroundColor(new RGB(252, 255, 240)); // titanium white
    // textStyle.setBackgroundColor(new RGB(231, 255, 232)); // pale green
View Full Code Here

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

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

    acceptor.acceptDefaultHighlighting(FUNCTION, "Function", functionTextStyle());
    acceptor.acceptDefaultHighlighting(ELEMENT, "Element", elementTextStyle());
  }

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

    textStyle.setColor(new RGB(0,153,0));
    return textStyle;
  }
 
  public TextStyle elementTextStyle() {
    TextStyle textStyle = crossSelectorTextStyle().copy();
    textStyle.setStyle(SWT.BOLD);
    return textStyle;
  }
View Full Code Here

    return textStyle;
  }
 

  public TextStyle crossSelectorTextStyle() {
    TextStyle textStyle = defaultTextStyle().copy();
    textStyle.setColor(new RGB(206,123,0));
    return textStyle;
  }
View Full Code Here

    textStyle.setColor(new RGB(206,123,0));
    return textStyle;
  }
 
  public TextStyle urlTextStyle() {
    TextStyle textStyle = stringTextStyle().copy();
    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.