Package com.aptana.parsing.ast

Examples of com.aptana.parsing.ast.IParseNode


    @Override
    protected IParseNode processEmbeddedlanguage(IParseState parseState, WorkingParseResult working) throws Exception {
        String source = parseState.getSource();
        int startingOffset = parseState.getStartingOffset();
        IParseNode root = new ParseRootNode(language, new ParseNode[0], startingOffset, startingOffset
                + source.length() - 1);

        advance();
        short id = getCurrentSymbol().getId();
        while (id != DjangoTemplatesTokens.EOF) {
View Full Code Here


        this.fDocument = document;
    }

    public Image getImage(Object element) {
        if (element instanceof CommonOutlineItem) {
            IParseNode node = ((CommonOutlineItem) element).getReferenceNode();

            if (node instanceof DjangoTemplatesNode) {
                return DjPlugin.getImageCache().get("icons/element.gif");
            }
        }
View Full Code Here

        return text.toString();
    }

    public String getText(Object element) {
        if (element instanceof CommonOutlineItem) {
            IParseNode node = ((CommonOutlineItem) element).getReferenceNode();
            if (node instanceof DjangoTemplatesNode) {
                return getDisplayText((DjangoTemplatesNode) node);
            }
        }
        return null;
View Full Code Here

TOP

Related Classes of com.aptana.parsing.ast.IParseNode

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.