workspace = newWorkspace;
if(newWorkspace == null) {
return;
}
tree = new AlertTree(workspace);
for(IScanInstance scan: workspace.getScanAlertRepository().getAllScanInstances()) {
if (scan.getScanStatus() != IScanInstance.SCAN_CONFIG) {
tree.addScan(scan);
for(IScanAlert alert: scan.getAllAlerts()) {
tree.addAlert(alert);