Examples of TextStyle


Examples of org.eclipse.swt.graphics.TextStyle

                : fSymbolicFontName;
        Font font = JFaceResources.getFont(symbolicFontName);
        fTextLayout.setFont(font);
        fTextLayout.setWidth(-1);
        font = JFaceResources.getFontRegistry().getBold(symbolicFontName);
        fBoldStyle = new TextStyle(font, null, null);

        // Compute and set tab width
        fTextLayout.setText("    "); //$NON-NLS-1$
        final int tabWidth = fTextLayout.getBounds().width;
        fTextLayout.setTabs(new int[] { tabWidth });
View Full Code Here

Examples of org.eclipse.swt.graphics.TextStyle

      text += string;
    }
    tlayout.setText(text);

    tlayout.setStyle(new TextStyle(null, pathColor, null), blackLength,
        text.length());
    if (!matches) {
      tlayout.setStyle(new TextStyle(null, matchColor, null), text
          .length()
          - string.length(), text.length());
    }
    if (filter != null) {
      Point match = filter.match(getName(trace));
      if (match != null) {
        tlayout.setStyle(new TextStyle(null, null, matchColor),
            match.x, match.y + match.x - 1);
      }
    }
    tlayout.draw(event.gc, event.x + getMaxSize(), event.y);
  }
View Full Code Here

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

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

    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

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

    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

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

//    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

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

    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

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

    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

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

    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

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

    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
TOP
Copyright © 2018 www.massapi.com. 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.