// issue 193: first save as png
{
IPath destination = generateImageDestination(cls, ".png");
monitor.subTask("Saving PNG image " + destination.lastSegment());
CopyToImageUtil img = getCopyToImageUtil();
img.copyToImage(part, destination, ImageFileFormat.PNG, new SubProgressMonitor(monitor, 1));
saveMonitor.worked(1);
}
// issue 193: then save as svg
{
IPath destination = generateImageDestination(cls, ".svg");
monitor.subTask("Saving SVG image " + destination.lastSegment());
CopyToImageUtil img = getCopyToImageUtil();
img.copyToImage(part, destination, ImageFileFormat.SVG, new SubProgressMonitor(monitor, 1));
saveMonitor.worked(1);
}
saveMonitor.done();