Package org.openquark.gems.client.EditorScrollPane

Examples of org.openquark.gems.client.EditorScrollPane.ErrorOffset


     * Adds an error indicate for the given compiler message.
     * @param message the message to display an indicator for
     */
    public void addErrorIndicator(CodeAnalyser.OffsetCompilerMessage message) {
       
        ErrorOffset offset = getErrorOffset(message);
       
        if (offset == null) {
            return;
        }
       
        errorOffsets.add(offset);
        sidePanel.repaint();
               
        try {
            Highlighter highlighter = getEditor().getHighlighter();
            highlighter.addHighlight(offset.getStartOffset(), offset.getEndOffset(), new ErrorUnderlineHighlightPainter());
           
        } catch (BadLocationException ex) {
            throw new IllegalStateException("bad location adding highlight");
        }
    }
View Full Code Here


        }

        try {

            AdvancedCALEditor.EditorLocation offset = getEditor().getEditorTokenOffset(message.getOffsetLine(), message.getOffsetColumn(), -1);
            return new ErrorOffset(message, offset);
           
        } catch (BadLocationException ex) {
            throw new IllegalArgumentException("invalid location trying to convert compiler message source position");
        }
    }
View Full Code Here

TOP

Related Classes of org.openquark.gems.client.EditorScrollPane.ErrorOffset

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.