Search in sources :

Example 1 with FilterController

use of org.apache.cayenne.modeler.dialog.datadomain.FilterController in project cayenne by apache.

the class EditorView method initController.

private void initController() {
    this.filterController = new FilterController(eventController, treePanel);
    eventController.addDomainDisplayListener(this);
    eventController.addDataNodeDisplayListener(this);
    eventController.addDataMapDisplayListener(this);
    eventController.addObjEntityDisplayListener(this);
    eventController.addDbEntityDisplayListener(this);
    eventController.addProcedureDisplayListener(this);
    eventController.addQueryDisplayListener(this);
    eventController.addMultipleObjectsDisplayListener(this);
    eventController.addEmbeddableDisplayListener(this);
    // Moving this to try-catch block per CAY-940. Exception will be stack-traced
    try {
        ComponentGeometry geometry = new ComponentGeometry(this.getClass(), "splitPane/divider");
        geometry.bindIntProperty(splitPane, JSplitPane.DIVIDER_LOCATION_PROPERTY, 150);
    } catch (Exception ex) {
        LoggerFactory.getLogger(getClass()).error("Cannot bind divider property", ex);
    }
}
Also used : ComponentGeometry(org.apache.cayenne.modeler.pref.ComponentGeometry) FilterController(org.apache.cayenne.modeler.dialog.datadomain.FilterController)

Aggregations

FilterController (org.apache.cayenne.modeler.dialog.datadomain.FilterController)1 ComponentGeometry (org.apache.cayenne.modeler.pref.ComponentGeometry)1