IStructuredSelection structuredSelection = (IStructuredSelection) selection;
Object[] selected = structuredSelection.toArray();
for (int i = 0; i < selected.length; i++) {
targets.remove(selected[i]);
monitor.modifySelection(selected[i], false);
TargetSelectionEvent event =
new TargetSelectionEvent(this, selected[i], false);
fireTargetSelectionEvent(event);
}
selectedTargets.refresh();
}
}