/**
* @author Tuukka Lehtonen
- * @author Teemu Mätäsniemi
+ * @author Teemu M�t�sniemi
*/
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<Representation> 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(