Edit popup menu commands and literal DataGrid group keys

This commit is contained in:
2026-11-25 13:52:30 +01:00
parent 9c63b2dd0f
commit d99e2e69cd
14 changed files with 581 additions and 30 deletions
@@ -110,19 +110,19 @@ public final class FolderActionsTargetProbe {
}
}
private static List<?> rows(Node grid) throws Exception {
static List<?> rows(Node grid) throws Exception {
return (List<?>) grid.getClass().getMethod("getItems").invoke(grid);
}
private static String attr(Object row, String name) throws Exception {
static String attr(Object row, String name) throws Exception {
return (String) row.getClass().getMethod(name).invoke(row);
}
private static void select(Node grid, List<String> keys) throws Exception {
static void select(Node grid, List<String> keys) throws Exception {
grid.getClass().getMethod("selectKeys", Collection.class).invoke(grid, keys);
}
private static MenuItem move(Node grid, String file) {
static MenuItem move(Node grid, String file) {
Node anchor =
grid.lookupAll(".label").stream()
.filter(n -> n instanceof Label l && l.getText().equals(file))