public void reseting() { this.getCheckingModel().setCheckingMode(CheckingMode.PROPAGATE); this.getCheckingModel().clearChecking(); MenuSelectionManager.defaultManager().clearSelectedPath(); this.clearStructures(); this.clearSelection(); transformModel.setFilter(null, null); }
public void releasedKey(String regex) { MenuSelectionManager.defaultManager().clearSelectedPath(); this.getCheckingModel().setCheckingMode(CheckingMode.SIMPLE); TreeModelTransformer.Filter filter = regex.isEmpty() ? null : new TreeModelTransformer.RegexFilter( Pattern.compile(regex, Pattern.CASE_INSENSITIVE), false); TreePath startingPath = filter == null ? null : this.getSelectionPath(); transformModel.setFilter(filter, startingPath); MenuSelectionManager.defaultManager().clearSelectedPath(); this.getCheckingModel().setCheckingMode(CheckingMode.PROPAGATE); }