Run Designer previews with application-owned DI adapters
This commit is contained in:
@@ -18,7 +18,7 @@ The canvas is a design surface, not the running application. Use interactive pre
|
||||
|
||||
## Interactive preview
|
||||
|
||||
**Interactive preview** starts a separate target JVM with its own Model/context and the current View plus known open Component drafts. It does not share the canvas Model. **Restart** creates fresh sample state; **Stop preview** closes only the owned preview. Closing its editor closes its preview while other editors remain open.
|
||||
**Interactive preview** starts a separate target JVM with fresh sample data and services from the provider. It uses the captured application FX runtime and the current View plus known open Component drafts. See [supported provider context types](projects.md#use-the-separated-fx-runtime-with-neitzel-di). It does not share the canvas Model. **Restart** creates fresh sample state; **Stop preview** closes only the owned preview. Closing its editor closes its preview while other editors remain open.
|
||||
|
||||
Typing later FXML drafts does not destroy interactive state immediately: the preview remains open and indicates earlier drafts. Saving an affected document restarts the preview with fresh sample state. Explicit restart also captures current drafts and clears that indication. Build changes require the normal successful-snapshot selection. Invalid bindings block new previews while leaving source editing/saving available.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user