From: jsimomaa Date: Thu, 1 Feb 2018 07:55:16 +0000 (+0200) Subject: Add SubMonitor features to UI/Progress SCL-module X-Git-Tag: v1.43.0~136^2~608 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=9c6fc8525df9a7d713cee3ef4c1fee058dc4b3c5;p=simantics%2Fplatform.git Add SubMonitor features to UI/Progress SCL-module refs #7738 Change-Id: Id65d40a133f443b005f8dbe93c015d6c6150f6ee --- diff --git a/bundles/org.simantics.scl.osgi/scl/UI/Progress.scl b/bundles/org.simantics.scl.osgi/scl/UI/Progress.scl index 05e870406..f09d49d48 100644 --- a/bundles/org.simantics.scl.osgi/scl/UI/Progress.scl +++ b/bundles/org.simantics.scl.osgi/scl/UI/Progress.scl @@ -8,6 +8,13 @@ importJava "org.eclipse.core.runtime.IProgressMonitor" where setCanceled :: ProgressMonitor -> Boolean -> () subTask :: ProgressMonitor -> String -> () +importJava "org.eclipse.core.runtime.SubMonitor" where + data SubMonitor + + @JavaName convert + convertMonitor :: ProgressMonitor -> Integer -> SubMonitor + newChild :: SubMonitor -> Integer -> ProgressMonitor + importJava "org.eclipse.core.runtime.NullProgressMonitor" where @JavaName "" createNullProgressMonitor :: () -> ProgressMonitor