Examples of ErrorOffset


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

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

        }

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