Search in sources :

Example 1 with DisjunctConditions

use of org.freeplane.features.filter.condition.DisjunctConditions in project freeplane by freeplane.

the class Slide method getEffectiveFilterCondition.

public ICondition getEffectiveFilterCondition() {
    final ICondition condition;
    if (showsOnlySpecificNodes && filterCondition != null) {
        SelectedViewSnapshotCondition selectedViewSnapshotCondition = getFilterConditionForSelectedNodes();
        condition = new DisjunctConditions(selectedViewSnapshotCondition, filterCondition);
    } else if (showsOnlySpecificNodes && filterCondition == null) {
        condition = getFilterConditionForSelectedNodes();
    } else if (!showsOnlySpecificNodes && filterCondition != null) {
        condition = filterCondition;
    } else {
        condition = null;
    }
    return condition;
}
Also used : SelectedViewSnapshotCondition(org.freeplane.features.filter.condition.SelectedViewSnapshotCondition) ICondition(org.freeplane.features.filter.condition.ICondition) DisjunctConditions(org.freeplane.features.filter.condition.DisjunctConditions)

Aggregations

DisjunctConditions (org.freeplane.features.filter.condition.DisjunctConditions)1 ICondition (org.freeplane.features.filter.condition.ICondition)1 SelectedViewSnapshotCondition (org.freeplane.features.filter.condition.SelectedViewSnapshotCondition)1