2 import "Simantics/Model"
3 import "Simantics/Scenegraph"
5 importJava "org.simantics.modeling.ui.SCLClipboard" where
7 copyNode :: Resource -> <Proc> ()
10 pasteNode :: Resource -> <Proc> ()
12 @JavaName copyPasteNode
13 copyPasteNode :: Resource -> Resource -> <Proc> ()
16 delete :: ICanvasContext -> [Resource] -> <Proc> Boolean
18 @JavaName copyPasteDiagramContents
19 copyPasteDiagramContents :: ICanvasContext -> ICanvasContext -> [Resource] -> Boolean
22 copyPasteMBNode :: Resource -> <Proc> Resource
23 copyPasteMBNode resource = do
24 copyPasteNode resource
25 models = syncRead (\() -> allModels ())
26 model = models ! ((length models) - 1)