Search in sources :

Example 1 with EntityTreeRelationshipFilter

use of org.apache.cayenne.modeler.util.EntityTreeRelationshipFilter in project cayenne by apache.

the class ObjRelationshipInfo method initFromModel.

void initFromModel() {
    if (view.pathBrowser.getModel() == null) {
        EntityTreeModel treeModel = new EntityTreeModel(getStartEntity());
        treeModel.setFilter(new EntityTreeRelationshipFilter());
        view.pathBrowser.setModel(treeModel);
        setSelectionPath(getSavedDbRelationships());
    }
}
Also used : EntityTreeModel(org.apache.cayenne.modeler.util.EntityTreeModel) EntityTreeRelationshipFilter(org.apache.cayenne.modeler.util.EntityTreeRelationshipFilter)

Aggregations

EntityTreeModel (org.apache.cayenne.modeler.util.EntityTreeModel)1 EntityTreeRelationshipFilter (org.apache.cayenne.modeler.util.EntityTreeRelationshipFilter)1