Examples of addAnnotationType()


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

        // 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 );
View Full Code Here

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

        // 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 );
View Full Code Here

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

        // 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 );
View Full Code Here

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

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

            FilterCharacterPairMatcher cpm = new FilterCharacterPairMatcher( sourceViewer, parser );
            MatchingCharacterPainter mcp = new MatchingCharacterPainter( sourceViewer, cpm );
View Full Code Here

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

        // 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", BrowserUIPlugin.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 );
View Full Code Here

Examples of org.eclipse.jface.text.source.AnnotationRulerColumn.addAnnotationType()

        String key= preference.getVerticalRulerPreferenceKey();
        boolean showAnnotation= true;
        if (key != null && store.contains(key))
          showAnnotation= store.getBoolean(key);
        if (showAnnotation)
          column.addAnnotationType(preference.getAnnotationType());
      }
      column.addAnnotationType(Annotation.TYPE_UNKNOWN);
     
      // link to preference store
      fPropertyListener= new IPropertyChangeListener() {
View Full Code Here

Examples of org.eclipse.jface.text.source.AnnotationRulerColumn.addAnnotationType()

        if (key != null && store.contains(key))
          showAnnotation= store.getBoolean(key);
        if (showAnnotation)
          column.addAnnotationType(preference.getAnnotationType());
      }
      column.addAnnotationType(Annotation.TYPE_UNKNOWN);
     
      // link to preference store
      fPropertyListener= new IPropertyChangeListener() {
        public void propertyChange(PropertyChangeEvent event) {
          String property= event.getProperty();
View Full Code Here

Examples of org.eclipse.jface.text.source.AnnotationRulerColumn.addAnnotationType()

          String property= event.getProperty();
          AnnotationPreference annotationPreference= getVerticalRulerAnnotationPreference(property);
          if (annotationPreference != null && event.getNewValue() instanceof Boolean) {
            Object type= annotationPreference.getAnnotationType();
            if (((Boolean)event.getNewValue()).booleanValue())
              column.addAnnotationType(type);
            else
              column.removeAnnotationType(type);
            column.redraw();
          }
        }
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.