Examples of addTextStyleStrategy()


Examples of org.eclipse.jface.text.source.AnnotationPainter.addTextStyleStrategy()

     * forced to use the old squiggly painter instead of the new one. See
     * https://bugs.eclipse.org/bugs/show_bug.cgi?id=201928
     */
    AnnotationPainter painter = super.createAnnotationPainter();
    // dont use new squiggly painter
    painter.addTextStyleStrategy(AnnotationPreference.STYLE_SQUIGGLES, null);
    // use old one
    painter.addDrawingStrategy(AnnotationPreference.STYLE_SQUIGGLES, new AnnotationPainter.SquigglesStrategy());
    // dont use new problem underline painter
    painter.addTextStyleStrategy(AnnotationPreference.STYLE_PROBLEM_UNDERLINE, null);
    // use old one
View Full Code Here

Examples of org.eclipse.jface.text.source.AnnotationPainter.addTextStyleStrategy()

    // dont use new squiggly painter
    painter.addTextStyleStrategy(AnnotationPreference.STYLE_SQUIGGLES, null);
    // use old one
    painter.addDrawingStrategy(AnnotationPreference.STYLE_SQUIGGLES, new AnnotationPainter.SquigglesStrategy());
    // dont use new problem underline painter
    painter.addTextStyleStrategy(AnnotationPreference.STYLE_PROBLEM_UNDERLINE, null);
    // use old one
    painter.addDrawingStrategy(AnnotationPreference.STYLE_PROBLEM_UNDERLINE, new AnnotationPainter.SquigglesStrategy());
    return painter;
  }
}
View Full Code Here

Examples of org.eclipse.jface.text.source.AnnotationPainter.addTextStyleStrategy()

     * see https://bugs.eclipse.org/bugs/show_bug.cgi?id=51498
     */
    painter.addDrawingStrategy(AnnotationPreference.STYLE_NONE, fgNullStrategy);
    painter.addDrawingStrategy(AnnotationPreference.STYLE_IBEAM, fgIBeamStrategy);

    painter.addTextStyleStrategy(AnnotationPreference.STYLE_SQUIGGLES, fgSquigglesStrategy);
    painter.addTextStyleStrategy(AnnotationPreference.STYLE_PROBLEM_UNDERLINE, fgProblemUnderlineStrategy);
    painter.addTextStyleStrategy(AnnotationPreference.STYLE_BOX, fgBoxStrategy);
    painter.addTextStyleStrategy(AnnotationPreference.STYLE_DASHED_BOX, fgDashedBoxStrategy);
    painter.addTextStyleStrategy(AnnotationPreference.STYLE_UNDERLINE, fgUnderlineStrategy);

View Full Code Here

Examples of org.eclipse.jface.text.source.AnnotationPainter.addTextStyleStrategy()

     */
    painter.addDrawingStrategy(AnnotationPreference.STYLE_NONE, fgNullStrategy);
    painter.addDrawingStrategy(AnnotationPreference.STYLE_IBEAM, fgIBeamStrategy);

    painter.addTextStyleStrategy(AnnotationPreference.STYLE_SQUIGGLES, fgSquigglesStrategy);
    painter.addTextStyleStrategy(AnnotationPreference.STYLE_PROBLEM_UNDERLINE, fgProblemUnderlineStrategy);
    painter.addTextStyleStrategy(AnnotationPreference.STYLE_BOX, fgBoxStrategy);
    painter.addTextStyleStrategy(AnnotationPreference.STYLE_DASHED_BOX, fgDashedBoxStrategy);
    painter.addTextStyleStrategy(AnnotationPreference.STYLE_UNDERLINE, fgUnderlineStrategy);

    return painter;
View Full Code Here

Examples of org.eclipse.jface.text.source.AnnotationPainter.addTextStyleStrategy()

    painter.addDrawingStrategy(AnnotationPreference.STYLE_NONE, fgNullStrategy);
    painter.addDrawingStrategy(AnnotationPreference.STYLE_IBEAM, fgIBeamStrategy);

    painter.addTextStyleStrategy(AnnotationPreference.STYLE_SQUIGGLES, fgSquigglesStrategy);
    painter.addTextStyleStrategy(AnnotationPreference.STYLE_PROBLEM_UNDERLINE, fgProblemUnderlineStrategy);
    painter.addTextStyleStrategy(AnnotationPreference.STYLE_BOX, fgBoxStrategy);
    painter.addTextStyleStrategy(AnnotationPreference.STYLE_DASHED_BOX, fgDashedBoxStrategy);
    painter.addTextStyleStrategy(AnnotationPreference.STYLE_UNDERLINE, fgUnderlineStrategy);

    return painter;
  }
View Full Code Here

Examples of org.eclipse.jface.text.source.AnnotationPainter.addTextStyleStrategy()

    painter.addDrawingStrategy(AnnotationPreference.STYLE_IBEAM, fgIBeamStrategy);

    painter.addTextStyleStrategy(AnnotationPreference.STYLE_SQUIGGLES, fgSquigglesStrategy);
    painter.addTextStyleStrategy(AnnotationPreference.STYLE_PROBLEM_UNDERLINE, fgProblemUnderlineStrategy);
    painter.addTextStyleStrategy(AnnotationPreference.STYLE_BOX, fgBoxStrategy);
    painter.addTextStyleStrategy(AnnotationPreference.STYLE_DASHED_BOX, fgDashedBoxStrategy);
    painter.addTextStyleStrategy(AnnotationPreference.STYLE_UNDERLINE, fgUnderlineStrategy);

    return painter;
  }
View Full Code Here

Examples of org.eclipse.jface.text.source.AnnotationPainter.addTextStyleStrategy()

    painter.addTextStyleStrategy(AnnotationPreference.STYLE_SQUIGGLES, fgSquigglesStrategy);
    painter.addTextStyleStrategy(AnnotationPreference.STYLE_PROBLEM_UNDERLINE, fgProblemUnderlineStrategy);
    painter.addTextStyleStrategy(AnnotationPreference.STYLE_BOX, fgBoxStrategy);
    painter.addTextStyleStrategy(AnnotationPreference.STYLE_DASHED_BOX, fgDashedBoxStrategy);
    painter.addTextStyleStrategy(AnnotationPreference.STYLE_UNDERLINE, fgUnderlineStrategy);

    return painter;
  }

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