Examples of AnnotationPainter


Examples of com.subgraph.vega.ui.httpeditor.annotations.AnnotationPainter

  private boolean displayImages = true;
  private boolean displayImagesAsHex = false;
 
  BinaryEntityManager(SourceViewer viewer, SashForm sash, Composite root) {
    this.viewer = viewer;
    this.annotationPainter = new AnnotationPainter(viewer);
    this.sashForm = sash;
    this.root = root;
    this.hexEditor = new HexEditControl(sashForm);
    sashForm.setMaximizedControl(root);
  }
View Full Code Here

Examples of org.eclipse.jface.text.source.AnnotationPainter

          org.eclipse.jface.text.source.IVerticalRuler ruler, int styles) {
    SourceViewer sourceViewer = new SourceViewer(parent, ruler, styles);

    sourceViewer.setEditable(false);

    mPainter = new AnnotationPainter(sourceViewer, new AnnotationAccess());

    sourceViewer.addPainter(mPainter);

    return sourceViewer;
  }
View Full Code Here

Examples of org.eclipse.jface.text.source.AnnotationPainter

        }

        // add annotation painter
        if ( paintManager == null && sourceViewer.getAnnotationModel() instanceof IAnnotationModelExtension )
        {
            AnnotationPainter ap = new AnnotationPainter( sourceViewer, null );
            ap.addAnnotationType( "DEFAULT" ); //$NON-NLS-1$
            ap.setAnnotationTypeColor( "DEFAULT", BrowserCommonActivator.getDefault().getColor( new RGB( 255, 0, 0 ) ) ); //$NON-NLS-1$
            sourceViewer.getAnnotationModel().addAnnotationModelListener( ap );

            FilterCharacterPairMatcher cpm = new FilterCharacterPairMatcher( sourceViewer, parser );
            MatchingCharacterPainter mcp = new MatchingCharacterPainter( sourceViewer, cpm );
            mcp.setColor( BrowserCommonActivator.getDefault().getColor( new RGB( 159, 159, 159 ) ) );
View Full Code Here

Examples of org.eclipse.jface.text.source.AnnotationPainter

          org.eclipse.jface.text.source.IVerticalRuler ruler, int styles) {
    SourceViewer sourceViewer = new SourceViewer(parent, ruler, styles);

    sourceViewer.setEditable(false);

    mPainter = new AnnotationPainter(sourceViewer, new AnnotationAccess());

    sourceViewer.addPainter(mPainter);
   
    return sourceViewer;
  }
View Full Code Here

Examples of org.eclipse.jface.text.source.AnnotationPainter

   * Creates and configures the annotation painter and configures.
   * @return an annotation painter
   * @since 3.0
   */
  protected AnnotationPainter createAnnotationPainter() {
    AnnotationPainter painter= new AnnotationPainter(fSourceViewer, fAnnotationAccess);

    /*
     * XXX:
     * Could provide an extension point for drawing strategies,
     * see: https://bugs.eclipse.org/bugs/show_bug.cgi?id=51498
     */
    painter.addDrawingStrategy(AnnotationPreference.STYLE_BOX, fgBoxStrategy);
    painter.addDrawingStrategy(AnnotationPreference.STYLE_DASHED_BOX, fgDashedBoxStrategy);
    painter.addDrawingStrategy(AnnotationPreference.STYLE_NONE, fgNullStrategy);
    painter.addDrawingStrategy(AnnotationPreference.STYLE_SQUIGGLES, fgSquigglesStrategy);
    painter.addDrawingStrategy(AnnotationPreference.STYLE_UNDERLINE, fgUnderlineStrategy);
    painter.addDrawingStrategy(AnnotationPreference.STYLE_IBEAM, fgIBeamStrategy);

    return painter;
  }
View Full Code Here

Examples of org.eclipse.jface.text.source.AnnotationPainter

          org.eclipse.jface.text.source.IVerticalRuler ruler, int styles) {
    SourceViewer sourceViewer = new SourceViewer(parent, ruler, styles);

    sourceViewer.setEditable(false);

    mPainter = new AnnotationPainter(sourceViewer, new AnnotationAccess());

    sourceViewer.addPainter(mPainter);

    return sourceViewer;
  }
View Full Code Here

Examples of org.eclipse.jface.text.source.AnnotationPainter

          org.eclipse.jface.text.source.IVerticalRuler ruler, int styles) {
    SourceViewer sourceViewer = new SourceViewer(parent, ruler, styles);

    sourceViewer.setEditable(false);

    mPainter = new AnnotationPainter(sourceViewer, new AnnotationAccess());

    sourceViewer.addPainter(mPainter);
   
    return sourceViewer;
  }
View Full Code Here

Examples of org.eclipse.jface.text.source.AnnotationPainter

     * the presentation reconciler because it conflicts with its
     * highlighter. Overriding createAnnotationPainter so that it is
     * 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
    painter.addDrawingStrategy(AnnotationPreference.STYLE_PROBLEM_UNDERLINE, new AnnotationPainter.SquigglesStrategy());
    return painter;
  }
View Full Code Here

Examples of org.eclipse.jface.text.source.AnnotationPainter

        }

        // add annotation painter
        if ( this.paintManager == null && this.sourceViewer.getAnnotationModel() instanceof IAnnotationModelExtension )
        {
            AnnotationPainter ap = new AnnotationPainter( this.sourceViewer, null );
            ap.addAnnotationType( "DEFAULT" );
            ap.setAnnotationTypeColor( "DEFAULT", BrowserCommonActivator.getDefault().getColor( new RGB( 255, 0, 0 ) ) );
            this.sourceViewer.getAnnotationModel().addAnnotationModelListener( ap );

            FilterCharacterPairMatcher cpm = new FilterCharacterPairMatcher( this.sourceViewer, this.parser );
            MatchingCharacterPainter mcp = new MatchingCharacterPainter( this.sourceViewer, cpm );
            mcp.setColor( BrowserCommonActivator.getDefault().getColor( new RGB( 159, 159, 159 ) ) );
View Full Code Here

Examples of org.eclipse.jface.text.source.AnnotationPainter

          org.eclipse.jface.text.source.IVerticalRuler ruler, int styles) {
    SourceViewer sourceViewer = new SourceViewer(parent, ruler, styles);

    sourceViewer.setEditable(false);

    mPainter = new AnnotationPainter(sourceViewer, new AnnotationAccess());

    sourceViewer.addPainter(mPainter);
   
    return sourceViewer;
  }
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.