Connect minimal hosts to snapshots, target workers and shared Kit editing

This commit is contained in:
2026-11-12 11:07:45 +01:00
parent 28c1e47c95
commit 7db7218a6e
52 changed files with 4236 additions and 29 deletions
@@ -24,6 +24,7 @@ public final class Examples implements PreviewProvider<Person, ApplicationContex
public PreviewSession<Person, ApplicationContext> open(String id) throws Exception {
if (!javafx.application.Platform.isFxApplicationThread())
throw new AssertionError("Provider not on FX");
System.out.println("Application console: NFX1 is ordinary text, not a wire frame");
person = new Person();
context = new ApplicationContext("fixture.components");
service = context.getComponent(Greeting.class);
@@ -8,7 +8,8 @@
"targetRuntime": "java21",
"preview": {
"sourceSet": "test",
"provider": "fixture.preview.Examples"
"provider": "fixture.preview.Examples",
"defaultExample": "standard"
}
}
}
@@ -9,10 +9,11 @@
"preview": {
"sourceSet": "module",
"module": "preview",
"provider": "fixture.preview.Examples"
"provider": "fixture.preview.Examples",
"defaultExample": "standard"
},
"modulePath": {
"entryModule": "fixture.checks"
"entryModule": "fixture.preview"
}
}
}
@@ -24,6 +24,7 @@ public final class Examples implements PreviewProvider<Person, ApplicationContex
public PreviewSession<Person, ApplicationContext> open(String id) throws Exception {
if (!javafx.application.Platform.isFxApplicationThread())
throw new AssertionError("Provider not on FX");
System.out.println("Application console: NFX1 is ordinary text, not a wire frame");
person = new Person();
context = new ApplicationContext("fixture.components");
service = context.getComponent(Greeting.class);