Hi,
We have implemented the `createSelectionEditor` for an ComponentDesignDelegate. But we would like the user to be able to open the "Edit Binding" dialog. Like clicking on the chain link on the props panel beside a prop. We would like the user to be able to bind a tag/expression to a value similar to what is possible in the Props panel.
From the ComponentDesignDelegate is it possible to open the "Editor Binding" dialog?
Technically yes, though I don't know how easily you'll have access to all these different required plumbing pieces.
This is a Kotlin snippet used by the configuration explorer to open the binding editor at a specific path:
BindingEditorFrame.FRAME_MANAGER.open(
PropertyFrameKey(workspace.selectedBridgeAdapter, listOf(addressPath), propertyKey),
Pair.of(userObject as BindingConfig, JsonObject())
)
Ultimately you need to call FrameManager.open, where the FrameManager in question (the public static final BindingEditorFrame.FRAME_MANAGER) is:
FrameManager<PropertyFrameKey, Pair<BindingConfig, JsonElement>, BindingEditorFrame>
Good luck.