From 9c6fc8525df9a7d713cee3ef4c1fee058dc4b3c5 Mon Sep 17 00:00:00 2001 From: jsimomaa Date: Thu, 1 Feb 2018 09:55:16 +0200 Subject: [PATCH] Add SubMonitor features to UI/Progress SCL-module refs #7738 Change-Id: Id65d40a133f443b005f8dbe93c015d6c6150f6ee --- bundles/org.simantics.scl.osgi/scl/UI/Progress.scl | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- 2.47.1