mirror of
https://github.com/badvision/jace.git
synced 2024-11-24 15:30:51 +00:00
Hooked up the Cancellation button, because sometimes in the future things actually work.
This commit is contained in:
parent
8959c412ed
commit
50ffe8aab6
@ -15,7 +15,6 @@ import java.util.regex.Pattern;
|
|||||||
import javafx.beans.Observable;
|
import javafx.beans.Observable;
|
||||||
import javafx.beans.value.ObservableValue;
|
import javafx.beans.value.ObservableValue;
|
||||||
import javafx.collections.FXCollections;
|
import javafx.collections.FXCollections;
|
||||||
import javafx.event.ActionEvent;
|
|
||||||
import javafx.fxml.FXML;
|
import javafx.fxml.FXML;
|
||||||
import javafx.scene.Node;
|
import javafx.scene.Node;
|
||||||
import javafx.scene.control.CheckBox;
|
import javafx.scene.control.CheckBox;
|
||||||
@ -74,7 +73,8 @@ public class ConfigurationUIController {
|
|||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
void cancelConfig(MouseEvent event) {
|
void cancelConfig(MouseEvent event) {
|
||||||
throw new RuntimeException("Not implemented yet");
|
Configuration.buildTree();
|
||||||
|
resetDeviceTree();
|
||||||
}
|
}
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
@ -100,13 +100,11 @@ public class ConfigurationUIController {
|
|||||||
|
|
||||||
private void getExpandedNodes(String prefix, TreeItem<ConfigNode> root, Set<String> expanded) {
|
private void getExpandedNodes(String prefix, TreeItem<ConfigNode> root, Set<String> expanded) {
|
||||||
if (root == null) return;
|
if (root == null) return;
|
||||||
for (TreeItem item : root.getChildren()) {
|
root.getChildren().stream().filter((item) -> (item.isExpanded())).forEach((item) -> {
|
||||||
if (item.isExpanded()) {
|
|
||||||
String name = prefix+item.toString();
|
String name = prefix+item.toString();
|
||||||
expanded.add(name);
|
expanded.add(name);
|
||||||
getExpandedNodes(name+DELIMITER, item, expanded);
|
getExpandedNodes(name+DELIMITER, item, expanded);
|
||||||
}
|
});
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setExpandedNodes(String prefix, TreeItem<ConfigNode> root, Set<String> expanded) {
|
private void setExpandedNodes(String prefix, TreeItem<ConfigNode> root, Set<String> expanded) {
|
||||||
|
Loading…
Reference in New Issue
Block a user