Utility API for putting string on clipboard#3826
Conversation
|
|
This adds a direct dependency from the ScriptUtil to javafx (Platform, ...). Originally, we had a separation of display-model, display-runtime, display-representation. The toolkit-specific implementation is then in representation-jfx and representation-swt: https://github.com/kasemir/org.csstudio.display.builder/blob/2a0ba03576cb76b1b6346ca35791354384fa75e9/org.csstudio.display.builder.representation.javafx/src/org/csstudio/display/builder/representation/javafx/JFXRepresentation.java#L810 Regrettably, I think we've burned enough bridges by now to sustain this approach. The display editor is tied at the hip to JFX, might as well directly call JFX from anywhere and then completely start over when JFX needs to be replaced. |
kasemir
left a comment
There was a problem hiding this comment.
See comment on import javafx.... dependencies unlikely worth fixing at this point in time.
|
Sure, I could add a method in |



Follow up on #3821:
API to put a string on the system clipboard, e.g. from (embedded) script. For the sake of simplicity, no types besides
java.lang.Stringare supported.Testing:
Documentation: