Offer grid row attributes and qualify Archiver folder profile editing
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user