Package org.eclipse.jface.text

Examples of org.eclipse.jface.text.MarginPainter


   * Shows the margin.
   */
  private void showMargin() {
    if (fMarginPainter == null) {
      if (fSourceViewer instanceof ITextViewerExtension2) {
        fMarginPainter= new MarginPainter(fSourceViewer);
        fMarginPainter.setMarginRulerColor(getColor(fMarginPainterColorKey));
        if (fPreferenceStore != null)
          fMarginPainter.setMarginRulerColumn(fPreferenceStore.getInt(fMarginPainterColumnKey));
        ITextViewerExtension2 extension= (ITextViewerExtension2) fSourceViewer;
        extension.addPainter(fMarginPainter);
View Full Code Here


   * Shows the margin.
   */
  private void showMargin() {
    if (fMarginPainter == null) {
      if (fSourceViewer instanceof ITextViewerExtension2) {
        fMarginPainter= new MarginPainter(fSourceViewer);
        fMarginPainter.setMarginRulerColor(getColor(fMarginPainterColorKey));
        if (fPreferenceStore != null)
          fMarginPainter.setMarginRulerColumn(fPreferenceStore.getInt(fMarginPainterColumnKey));
        ITextViewerExtension2 extension= (ITextViewerExtension2) fSourceViewer;
        extension.addPainter(fMarginPainter);
View Full Code Here

  /**
   * Create margin painter and add to source viewer
   */
  protected void createMarginPainter() {
    MarginPainter marginPainter = new MarginPainter(sourceViewer);
    marginPainter.setMarginRulerColumn(MAX_LINE_WIDTH);
    marginPainter.setMarginRulerColor(Display.getDefault().getSystemColor(
        SWT.COLOR_GRAY));
    sourceViewer.addPainter(marginPainter);
  }
View Full Code Here

   * Shows the margin.
   */ 
  private void showMargin() {
    if (fMarginPainter == null) {
      if (fSourceViewer instanceof ITextViewerExtension2) {
        fMarginPainter= new MarginPainter(fSourceViewer);
        fMarginPainter.setMarginRulerColor(getColor(fMarginPainterColorKey));
        if (fPreferenceStore != null) {         
          fMarginPainter.setMarginRulerColumn(fPreferenceStore.getInt(fMarginPainterColumnKey));
          fMarginPainter.setMarginRulerColor(getColor(fMarginPainterColorKey));     
        }
View Full Code Here

TOP

Related Classes of org.eclipse.jface.text.MarginPainter

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.