Artifact[] artifacts = pde.getArtifacts();
if (artifacts.length > 0) {
_workPerArtifact = 1000 / 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) {