]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Add SubMonitor features to UI/Progress SCL-module 16/1416/1
authorjsimomaa <jani.simomaa@gmail.com>
Thu, 1 Feb 2018 07:55:16 +0000 (09:55 +0200)
committerjsimomaa <jani.simomaa@gmail.com>
Thu, 1 Feb 2018 07:55:16 +0000 (09:55 +0200)
refs #7738

Change-Id: Id65d40a133f443b005f8dbe93c015d6c6150f6ee

bundles/org.simantics.scl.osgi/scl/UI/Progress.scl

index 05e870406f38219483aa09d022e3dd29e18db595..f09d49d48c2f7d0ac598750de7e9b6e5b90048bb 100644 (file)
@@ -8,6 +8,13 @@ importJava "org.eclipse.core.runtime.IProgressMonitor" where
     setCanceled :: ProgressMonitor -> Boolean -> <Proc> ()
     subTask :: ProgressMonitor -> String -> <Proc> ()
 
+importJava "org.eclipse.core.runtime.SubMonitor" where
+    data SubMonitor
+
+    @JavaName convert
+    convertMonitor :: ProgressMonitor -> Integer -> <Proc> SubMonitor
+    newChild :: SubMonitor -> Integer -> <Proc> ProgressMonitor
+
 importJava "org.eclipse.core.runtime.NullProgressMonitor" where
     @JavaName "<init>"
     createNullProgressMonitor :: () -> <Proc> ProgressMonitor