Search in sources :

Example 1 with H2DatabaseItemTree

use of com.kyj.fx.voeditor.visual.component.sql.dbtree.H2.H2DatabaseItemTree in project Gargoyle by callakrsos.

the class H2Pane method apply.

@Override
public TreeItem<DatabaseItemTree<String>> apply(String t, Supplier<Connection> conSupplier) {
    try {
        DatabaseItemTree<String> databaseItemTree = new H2DatabaseItemTree("databases", conSupplier);
        TreeItem<DatabaseItemTree<String>> createNode = new DatabaseTreeNode().createNode(databaseItemTree);
        return createNode;
    } catch (Exception e) {
        e.printStackTrace();
    }
    return null;
}
Also used : H2DatabaseItemTree(com.kyj.fx.voeditor.visual.component.sql.dbtree.H2.H2DatabaseItemTree) H2DatabaseItemTree(com.kyj.fx.voeditor.visual.component.sql.dbtree.H2.H2DatabaseItemTree) DatabaseItemTree(com.kyj.fx.voeditor.visual.component.sql.dbtree.commons.DatabaseItemTree) DatabaseTreeNode(com.kyj.fx.voeditor.visual.component.sql.dbtree.DatabaseTreeNode)

Aggregations

DatabaseTreeNode (com.kyj.fx.voeditor.visual.component.sql.dbtree.DatabaseTreeNode)1 H2DatabaseItemTree (com.kyj.fx.voeditor.visual.component.sql.dbtree.H2.H2DatabaseItemTree)1 DatabaseItemTree (com.kyj.fx.voeditor.visual.component.sql.dbtree.commons.DatabaseItemTree)1