List of usage examples for org.apache.commons.collections PredicateUtils falsePredicate
public static Predicate falsePredicate()
From source file:org.apache.cayenne.modeler.dialog.autorelationship.InferRelationshipsTabController.java
/** * An action that updates entity check boxes in response to the Select All state * change./*from w w w .j a va 2 s . co m*/ */ public void checkAllAction() { Predicate predicate = view.getCheckAll().isSelected() ? PredicateUtils.truePredicate() : PredicateUtils.falsePredicate(); if (getParentController().updateSelection(predicate)) { tableBinding.updateView(); } }
From source file:org.apache.cayenne.modeler.dialog.codegen.CodeGeneratorController.java
public void generatorSelectedAction() { GeneratorController controller = generatorSelector.getGeneratorController(); validate(controller);/*from ww w . j a v a2 s . c o m*/ Predicate predicate = controller != null ? controller.getDefaultClassFilter() : PredicateUtils.falsePredicate(); updateSelection(predicate); classesSelector.classSelectedAction(); }