Package org.erlide.wrangler.refactoring.util

Examples of org.erlide.wrangler.refactoring.util.ErlRange


            final IErlMemberSelection sel = (IErlMemberSelection) GlobalParameters
                    .getWranglerSelection();
            for (final OtpErlangObject o : thePositions) {
                // {{sl, sc}, {el,ec}}
                final OtpErlangTuple pos = (OtpErlangTuple) o;
                ret.put(new ErlRange(new Range(pos), sel.getDocument()), pos);
            }

            return ret;
        } catch (final OtpErlangException e) {
            ErlLogger.error(e);
View Full Code Here


    }

    @Override
    public IErlRange getSelectionRange() {
        IErlRange range;
        range = new ErlRange(getStartLine(), getStartCol(), getEndLine(), getEndCol(),
                member.getSourceRange().getOffset(), member.getSourceRange().getLength());
        return range;
    }
View Full Code Here

     * @return selections
     */
    public HashMap<IErlRange, OtpErlangTuple> getPositionDefinitions(final IDocument doc) {
        final HashMap<IErlRange, OtpErlangTuple> ret = new HashMap<IErlRange, OtpErlangTuple>();
        for (final Entry<IRange, OtpErlangTuple> r : positionDefs.entrySet()) {
            ret.put(new ErlRange(r.getKey(), doc), r.getValue());
        }

        return ret;
    }
View Full Code Here

            sC = WranglerUtils.calculateColumnFromOffset(member.getSourceRange()
                    .getOffset(), sL - 1, document);
            eC = WranglerUtils.calculateColumnFromOffset(member.getSourceRange()
                    .getOffset() + member.getSourceRange().getLength(), eL - 1, document);
            range = new ErlRange(sL, sC, eL, eC, member.getSourceRange().getOffset(),
                    member.getSourceRange().getLength());

            return range;
        }
        return getSelectionRange();
View Full Code Here

        return getSelectionRange();
    }

    @Override
    public IErlRange getSelectionRange() {
        return new ErlRange(getStartLine(), getStartCol(), getEndLine(), getEndCol(),
                textSelection.getOffset(), textSelection.getLength());
    }
View Full Code Here

TOP

Related Classes of org.erlide.wrangler.refactoring.util.ErlRange

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.