Artifact[] artifacts = pde.getArtifacts();
if (artifacts.length > 0) {
workPerArtifact = MONITOR_LENGTH / artifacts.length;
}
} else if (event instanceof StartArtifactDownloadEvent) {
StartArtifactDownloadEvent evt = (StartArtifactDownloadEvent) event;
monitor.setTaskName("downloading " + evt.getArtifact());
if (dlmonitor != null) {
dlmonitor.done();
}
dlmonitor = new SubProgressMonitor(monitor, workPerArtifact);
} else if (event instanceof EndArtifactDownloadEvent) {