Offer grid row attributes and qualify Archiver folder profile editing

This commit is contained in:
2026-11-25 13:17:24 +01:00
parent ff6ba0a745
commit 9c63b2dd0f
10 changed files with 560 additions and 78 deletions
@@ -140,5 +140,38 @@ abstract class FormWorkflowProbe implements StartupActivity.DumbAware {
});
}
void commands(String control, String path, int count) throws Exception {
fx(
() -> {
var group =
(TitledPane)
pane.lookupAll(".titled-pane").stream()
.filter(n -> n instanceof TitledPane t && "Bindings".equals(t.getText()))
.findFirst()
.orElseThrow();
group.setAnimated(false);
group.setExpanded(true);
var tabs = (TabPane) group.getContent();
tabs.getSelectionModel()
.select(
tabs.getTabs().stream()
.filter(t -> t.getText().equals("Command bindings"))
.findFirst()
.orElseThrow());
pane.applyCss();
pane.layout();
var list = (ListView<?>) pane.lookup("#command-bindings");
if (list.getItems().size() != count) throw new AssertionError(list.getItems());
for (int i = 0; i < count; i++) {
if (list.getItems().get(i).toString().startsWith(control + " ←"))
list.getSelectionModel().select(i);
}
if (!control.equals(((TextField) pane.lookup("#command-control")).getText())
|| !path.equals(((TextField) pane.lookup("#command-path")).getText()))
throw new AssertionError(control + " → " + path);
return null;
});
}
abstract void verify(Project project) throws Exception;
}