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

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


    super.configure(acceptor);
    acceptor.acceptDefaultHighlighting(REGEX_ID, "Regular expression", regexTextStyle());   
  }
 
  public TextStyle regexTextStyle() {
    TextStyle textStyle = defaultTextStyle().copy();
    textStyle.setColor(new RGB(42, 0, 255));
    return textStyle;
  }
View Full Code Here


    acceptor.acceptDefaultHighlighting(VERSION_RANGE_ID, "Version Range", versionRangeTextStyle());
    acceptor.acceptDefaultHighlighting(INVALID_TOKEN_ID, "Invalid Symbol", errorTextStyle());
  }
 
  public TextStyle optionTextStyle() {
    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 versionRangeTextStyle() {
    TextStyle textStyle = defaultTextStyle().copy();
    textStyle.setColor(JFaceResources.getColorRegistry().getRGB(JFacePreferences.DECORATIONS_COLOR));
    return textStyle;
  }
View Full Code Here

//    textStyle.setColor(new RGB(20, 100, 20));
//    return textStyle;
//  }

  private TextStyle XVRMainFuncTextStyle() {
    TextStyle textStyle = new TextStyle();
    textStyle.setBackgroundColor(new RGB(255, 255, 255));
    textStyle.setColor(new RGB(127, 0, 85));
    textStyle.setStyle(SWT.BOLD);
    return textStyle;
  }
View Full Code Here

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

  private TextStyle XVRFuncTextStyle() {
    TextStyle textStyle = new TextStyle();
    textStyle.setBackgroundColor(new RGB(255, 255, 255));
    textStyle.setColor(new RGB(127, 0, 85));
    return textStyle;
  }
View Full Code Here

    textStyle.setColor(new RGB(127, 0, 85));
    return textStyle;
  }
 
  private TextStyle OpenGLFuncTextStyle() {
    TextStyle textStyle = new TextStyle();
    textStyle.setBackgroundColor(new RGB(255, 255, 255));
    textStyle.setColor(new RGB(192, 128, 0));
    return textStyle;
  }
View Full Code Here

    textStyle.setColor(new RGB(192, 128, 0));
    return textStyle;
  }
 
  private TextStyle funcTextStyle() {
    TextStyle textStyle = new TextStyle();
    textStyle.setBackgroundColor(new RGB(255, 255, 255));
    textStyle.setColor(new RGB(0, 0, 125));
    return textStyle;
  }
View Full Code Here

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

  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 errorTextStyle() {
    TextStyle textStyle = defaultTextStyle().copy();
//    textStyle.setColor(new RGB(255, 0, 0));
    return textStyle;
  }
View Full Code Here

//    textStyle.setColor(new RGB(255, 0, 0));
    return textStyle;
  }
 
  public TextStyle numberTextStyle() {
    TextStyle textStyle = defaultTextStyle().copy();
    textStyle.setColor(new RGB(128, 0, 0));
    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.