Search in sources :

Example 1 with AqlTyping

use of catdata.aql.exp.AqlTyping in project fql by CategoricalData.

the class AqlOutline method makeTree.

private DefaultMutableTreeNode makeTree(List<String> set, Program<Exp<?>> prog, boolean prefix, boolean alpha, boolean useTypes) {
    DefaultMutableTreeNode root = new DefaultMutableTreeNode();
    AqlTyping G = new AqlTyping(prog, new AqlOptions(prog.options, null, AqlOptions.initialOptions), true);
    for (String k : set) {
        Exp<?> e = prog.exps.get(k);
        if (e.kind().equals(Kind.COMMENT)) {
            continue;
        }
        DefaultMutableTreeNode n = new DefaultMutableTreeNode();
        n.setUserObject(new TreeLabel(k, prefix, G, useTypes));
        asTree(n, alpha, e);
        root.add(n);
    }
    return root;
}
Also used : DefaultMutableTreeNode(javax.swing.tree.DefaultMutableTreeNode) AqlTyping(catdata.aql.exp.AqlTyping) AqlOptions(catdata.aql.AqlOptions)

Aggregations

AqlOptions (catdata.aql.AqlOptions)1 AqlTyping (catdata.aql.exp.AqlTyping)1 DefaultMutableTreeNode (javax.swing.tree.DefaultMutableTreeNode)1