Package org.netbeans.spi.editor.highlighting.support

Examples of org.netbeans.spi.editor.highlighting.support.OffsetsBag


        ErrorManager.getDefault().notify(ErrorManager.INFORMATIONAL, new IllegalStateException("Unknown annotation type '"+type+"'."));
        return null;
    }
   
    static synchronized OffsetsBag getHighlightsBag(Document doc) {
        OffsetsBag bag = (OffsetsBag) doc.getProperty(DebuggerAnnotation.class);
        if (bag == null) {
            doc.putProperty(DebuggerAnnotation.class, bag = new OffsetsBag(doc, true));
        }
        return bag;
    }
View Full Code Here


            return null;
        }

        protected void addAnnotation(Annotation anno) {
            synchronized(DebuggerAnnotation.class) {
                OffsetsBag bag = getHighlightsBag(doc);
                bag.addHighlight(start, end, attrs);
            }
        }
View Full Code Here

            }
        }

        protected void removeAnnotation(Annotation anno) {
            synchronized(DebuggerAnnotation.class) {
                OffsetsBag bag = getHighlightsBag(doc);
                bag.removeHighlights(start, end, true);
            }
        }
View Full Code Here

TOP

Related Classes of org.netbeans.spi.editor.highlighting.support.OffsetsBag

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.