X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.annotation.ui%2Fsrc%2Forg%2Fsimantics%2Fannotation%2Fui%2Fwizard%2FAnnotationTypeExporter.java;h=417f2c515a8b7a2c14529ffc58d457e457309716;hp=70470fc6a503309c04ce5073879db4b44cd8d749;hb=60509f4629d5ca644dd9533dd2abc64349aad328;hpb=e88be95edf1f80781646cfdf717ec1b663264179 diff --git a/bundles/org.simantics.annotation.ui/src/org/simantics/annotation/ui/wizard/AnnotationTypeExporter.java b/bundles/org.simantics.annotation.ui/src/org/simantics/annotation/ui/wizard/AnnotationTypeExporter.java index 70470fc6a..417f2c515 100644 --- a/bundles/org.simantics.annotation.ui/src/org/simantics/annotation/ui/wizard/AnnotationTypeExporter.java +++ b/bundles/org.simantics.annotation.ui/src/org/simantics/annotation/ui/wizard/AnnotationTypeExporter.java @@ -43,7 +43,7 @@ import org.simantics.utils.ui.dialogs.ShowMessage; /** * @author Tuukka Lehtonen - * @author Teemu Mätäsniemi + * @author Teemu M�t�sniemi */ public class AnnotationTypeExporter implements IRunnableWithProgress { @@ -99,13 +99,13 @@ public class AnnotationTypeExporter implements IRunnableWithProgress { public SimanticsClipboard perform(ReadGraph graph) throws DatabaseException { CopyHandler ch = graph.adapt(annotation, CopyHandler.class); SimanticsClipboardImpl clipboard = new SimanticsClipboardImpl(); - ch.copyToClipboard(graph, clipboard); + ch.copyToClipboard(graph, clipboard, SubMonitor.convert(monitor, 85)); return clipboard; } }); for (Set object : clipboard.getContents()) { TransferableGraph1 tg = ClipboardUtils.accept(object, SimanticsKeys.KEY_TRANSFERABLE_GRAPH); - monitor.worked(95); + monitor.worked(10); monitor.setTaskName("Writing transferable graph..."); DataContainers.writeFile(location, new DataContainer(