X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.event%2Fscl%2FSimantics%2FEvent.scl;h=6839c964c33d0a74c760ba3d675942e0d3c7727b;hp=01a520d52e71c2e8a57967db4aa69c0ad4c95fb5;hb=3b81cc0cb395b8a883dcb325d11228bda067d748;hpb=e3cd3cd49bc2585f57d030a8743f9012f6161a92 diff --git a/bundles/org.simantics.event/scl/Simantics/Event.scl b/bundles/org.simantics.event/scl/Simantics/Event.scl index 01a520d52..6839c964c 100644 --- a/bundles/org.simantics.event/scl/Simantics/Event.scl +++ b/bundles/org.simantics.event/scl/Simantics/Event.scl @@ -20,4 +20,25 @@ findEventSlices log = do @private findEventsFromSlice :: Resource -> [Resource] findEventsFromSlice slice = do - collectionToList (objects_ slice L0.ConsistsOf) \ No newline at end of file + collectionToList (objects_ slice L0.ConsistsOf) + +importJava "org.simantics.event.util.EventExporter" where + """ + exportCurrentEvents "\t" "X:/events.txt" + + exports the currently visible events into the specified + text file using the specified column separator string. + This function should be used when invoking outside of + a database transaction. + """ + exportCurrentEvents :: String -> String -> () + + """ + exportCurrentEventsG "\t" "X:/events.txt" + + exports the currently visible events into the specified + text file using the specified column separator string. + This variant must be used when invoking the method with + DB transaction. + """ + exportCurrentEventsG :: String -> String -> ()