Package org.python.indexer

Examples of org.python.indexer.StyleRun


            addStyle(e, e.start(), e.end() - e.start(), type);
        }
    }

    private void addStyle(int beg, int len, StyleRun.Type type) {
        styles.add(new StyleRun(type, beg, len));
    }
View Full Code Here


        addStyle(beg, len, StyleRun.Type.TYPE_NAME);
        offsets.add(beg);
    }

    private void addStyle(int beg, int len, StyleRun.Type type) {
        styles.add(new StyleRun(type, beg, len));
        offsets.add(beg);
    }
View Full Code Here

    }

    private void addSemanticStyle(Def def, StyleRun.Type type) {
        String path = def.getFile();
        if (path != null) {
            addFileStyle(path, new StyleRun(type, def.start(), def.length()));
        }
    }
View Full Code Here

    private void processDefs(NBinding nb) {
        Def def = nb.getSignatureNode();
        if (def == null || def.isURL()) {
            return;
        }
        StyleRun style = new StyleRun(StyleRun.Type.ANCHOR, def.start(), def.length());
        style.message = nb.getQname();
        style.url = nb.getQname();
        addFileStyle(def.getFile(), style);
    }
View Full Code Here

    /**
     * Adds a hyperlink for a single reference.
     */
    void processRef(Ref ref, NBinding nb) {
        String path = ref.getFile();
        StyleRun link = new StyleRun(StyleRun.Type.LINK, ref.start(), ref.length());
        link.message = nb.getQname();
        link.url = toURL(nb, path);
        if (link.url != null) {
            addFileStyle(path, link);
        }
View Full Code Here

TOP

Related Classes of org.python.indexer.StyleRun

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.