Examples of LineRange


Examples of de.loskutov.bco.asm.LineRange

        updateStatus(lastDecompiledResult, bytecodeOffset, -1);
    }

    private void setMultiLineSelectionInBytecodeView(
        ITextSelection multiLineSelection) {
        LineRange range = lastDecompiledResult
            .getDecompiledRange(multiLineSelection);
        int firstDecompiledLine = range.startLine;
        if (firstDecompiledLine > 0) {
            try {
                if (modes.get(BCOConstants.F_SHOW_ANALYZER)) {
View Full Code Here

Examples of hudson.plugins.analysis.util.model.LineRange

        Iterator<BugAnnotation> annotationIterator = warning.annotationIterator();
        while (annotationIterator.hasNext()) {
            BugAnnotation bugAnnotation = annotationIterator.next();
            if (bugAnnotation instanceof SourceLineAnnotation) {
                SourceLineAnnotation annotation = (SourceLineAnnotation)bugAnnotation;
                bug.addLineRange(new LineRange(annotation.getStartLine(), annotation.getEndLine()));
            }
        }
    }
View Full Code Here

Examples of hudson.plugins.analysis.util.model.LineRange

        else if (link.startsWith("source.")) {
            owner.checkPermission(Item.WORKSPACE);

            FileAnnotation annotation = container.getAnnotation(StringUtils.substringAfter(link, "source."));
            if (annotation.isInConsoleLog()) {
                LineRange lines = annotation.getLineRanges().iterator().next();
                return new ConsoleDetail(owner, lines.getStart(), lines.getEnd());
            }
            else {
                return new SourceDetail(owner, annotation, defaultEncoding);
            }
        }
View Full Code Here

Examples of hudson.plugins.analysis.util.model.LineRange

     * @throws IOException in case of an IO error
     */
    @Test
    public void splitSingleLine() throws IOException {
        ArrayList<LineRange> lineRanges = new ArrayList<LineRange>();
        lineRanges.add(new LineRange(6));
        split("ExpectedRendering-Line6.html", lineRanges);
    }
View Full Code Here

Examples of hudson.plugins.analysis.util.model.LineRange

     * @throws IOException in case of an IO error
     */
    @Test
    public void splitLineRange() throws IOException {
        ArrayList<LineRange> lineRanges = new ArrayList<LineRange>();
        lineRanges.add(new LineRange(6, 12));
        split("ExpectedRendering-Line6-12.html", lineRanges);
    }
View Full Code Here

Examples of hudson.plugins.analysis.util.model.LineRange

     * @throws IOException in case of an IO error
     */
    @Test
    public void splitTwoRanges() throws IOException {
        ArrayList<LineRange> lineRanges = new ArrayList<LineRange>();
        lineRanges.add(new LineRange(1, 4));
        lineRanges.add(new LineRange(14, 20));
        split("ExpectedRendering-2-Ranges.html", lineRanges);
    }
View Full Code Here

Examples of javax.swing.text.PlainView_ChangesTest.LineRange

            protected void damageLineRange(final int line0, final int line1, final Shape shape,
                    final Component host) {
                if (callSuperDamageRange) {
                    super.damageLineRange(line0, line1, shape, host);
                } else {
                    lineRange = new LineRange(line0, line1, shape, host);
                }
            }
        };
        shape = new Rectangle(500, 500);
        doc.addDocumentListener(this);
View Full Code Here

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

    int leftStartLine= consistentBefore.leftStart() + shiftBefore;
    int leftLine= consistentAfter.leftEnd();
    if (leftToRight)
      leftLine += lineDelta;
    int leftEndLine= leftLine - shiftAfter;
    ILineRange leftRange= new LineRange(leftStartLine, leftEndLine - leftStartLine);
    IRangeComparator reference= new DocEquivalenceComparator(leftEquivalent, leftRange);

    // right (actual) document
    int rightStartLine= consistentBefore.rightStart() + shiftBefore;
    int rightLine= consistentAfter.rightEnd();
    if (!leftToRight)
      rightLine += lineDelta;
    int rightEndLine= rightLine - shiftAfter;
    ILineRange rightRange= new LineRange(rightStartLine, rightEndLine - rightStartLine);
    IRangeComparator change= new DocEquivalenceComparator(rightEquivalent, rightRange);

    // put an upper bound to the delay we can afford
    if (leftLine - shiftAfter - leftStartLine > 50 || rightLine - shiftAfter - rightStartLine > 50) {
      initialize();
View Full Code Here

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

            viewport.getStartLine())
            + Math.max(0, viewport.getNumberOfLines()), editor);
    }

    public ILineRange getLineRange() {
        return new LineRange(topIndex, bottomIndex - topIndex);
    }
View Full Code Here

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

            log.warn("Viewport Range Problem in " + viewer + ": Bottom == "
                + bottom + " < Top == " + top);
            bottom = top;
        }

        return new LineRange(top, bottom - top);
    }
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.