X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.modeling.ui%2Fscl%2FSimantics%2FClipboard.scl;fp=bundles%2Forg.simantics.modeling.ui%2Fscl%2FSimantics%2FClipboard.scl;h=ef288f7d5f0c656e45d99894df8174972aa30053;hb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;hp=76b8becca160ff3f97d086aefbc26826cfbc4145;hpb=24e2b34260f219f0d1644ca7a138894980e25b14;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.modeling.ui/scl/Simantics/Clipboard.scl b/bundles/org.simantics.modeling.ui/scl/Simantics/Clipboard.scl index 76b8becca..ef288f7d5 100644 --- a/bundles/org.simantics.modeling.ui/scl/Simantics/Clipboard.scl +++ b/bundles/org.simantics.modeling.ui/scl/Simantics/Clipboard.scl @@ -1,28 +1,28 @@ -import "Simantics/DB" -import "Simantics/Model" -import "Simantics/Scenegraph" - -importJava "org.simantics.modeling.ui.SCLClipboard" where - @JavaName copyNode - copyNode :: Resource -> () - - @JavaName pasteNode - pasteNode :: Resource -> () - - @JavaName copyPasteNode - copyPasteNode :: Resource -> Resource -> () - - @JavaName delete - delete :: ICanvasContext -> [Resource] -> Boolean - - @JavaName copyPasteDiagramContents - copyPasteDiagramContents :: ICanvasContext -> ICanvasContext -> [Resource] -> Boolean - -/* -copyPasteMBNode :: Resource -> Resource -copyPasteMBNode resource = do - copyPasteNode resource - models = syncRead (\() -> allModels ()) - model = models ! ((length models) - 1) - model +import "Simantics/DB" +import "Simantics/Model" +import "Simantics/Scenegraph" + +importJava "org.simantics.modeling.ui.SCLClipboard" where + @JavaName copyNode + copyNode :: Resource -> () + + @JavaName pasteNode + pasteNode :: Resource -> () + + @JavaName copyPasteNode + copyPasteNode :: Resource -> Resource -> () + + @JavaName delete + delete :: ICanvasContext -> [Resource] -> Boolean + + @JavaName copyPasteDiagramContents + copyPasteDiagramContents :: ICanvasContext -> ICanvasContext -> [Resource] -> Boolean + +/* +copyPasteMBNode :: Resource -> Resource +copyPasteMBNode resource = do + copyPasteNode resource + models = syncRead (\() -> allModels ()) + model = models ! ((length models) - 1) + model */ \ No newline at end of file