Esempio n. 1
0
 public void reseting() {
   this.getCheckingModel().setCheckingMode(CheckingMode.PROPAGATE);
   this.getCheckingModel().clearChecking();
   MenuSelectionManager.defaultManager().clearSelectedPath();
   this.clearStructures();
   this.clearSelection();
   transformModel.setFilter(null, null);
 }
Esempio n. 2
0
 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);
 }