Discover Converter capabilities and validate shared binding drafts
This commit is contained in:
@@ -200,6 +200,16 @@ public final class DesignerWorkflow implements AutoCloseable {
|
||||
|
||||
public CompletionStage<BindingMetadata> bindings(
|
||||
boolean last, DocumentSnapshot document, String path, String direction) {
|
||||
return bindingDetails(last, document, path, direction, "", "");
|
||||
}
|
||||
|
||||
public CompletionStage<BindingMetadata> bindingDetails(
|
||||
boolean last,
|
||||
DocumentSnapshot document,
|
||||
String path,
|
||||
String direction,
|
||||
String control,
|
||||
String property) {
|
||||
return execute(
|
||||
last,
|
||||
List.of(document),
|
||||
@@ -211,7 +221,17 @@ public final class DesignerWorkflow implements AutoCloseable {
|
||||
0,
|
||||
0,
|
||||
PreviewMessages.encode(
|
||||
Map.of("fxml", document.text(), "path", path, "direction", direction)),
|
||||
Map.of(
|
||||
"fxml",
|
||||
document.text(),
|
||||
"path",
|
||||
path,
|
||||
"direction",
|
||||
direction,
|
||||
"control",
|
||||
control,
|
||||
"property",
|
||||
property)),
|
||||
Duration.ofSeconds(15));
|
||||
try (var current =
|
||||
host.documents().open(document.document()).toCompletableFuture().get()) {
|
||||
|
||||
@@ -104,7 +104,7 @@ public final class PreviewWorker implements AutoCloseable {
|
||||
id,
|
||||
process.pid(),
|
||||
token,
|
||||
Set.of("discover-v1", "render-rgba-v1", "layout-v1", "interactive-v1", "bindings-v1"),
|
||||
Set.of("discover-v1", "render-rgba-v1", "layout-v1", "interactive-v1", "bindings-v2"),
|
||||
config.requiredCapabilities());
|
||||
}
|
||||
drain(process.getInputStream(), log);
|
||||
|
||||
Reference in New Issue
Block a user