use of org.baderlab.csplugins.enrichmentmap.task.postanalysis.RemoveSignatureDataSetsTask in project EnrichmentMapApp by BaderLab.
the class ControlPanelMediator method removeSignatureDataSets.
private void removeSignatureDataSets(EnrichmentMap map, EMViewControlPanel viewPanel) {
Set<EMSignatureDataSet> dataSets = viewPanel.getSelectedSignatureDataSets();
if (!dataSets.isEmpty()) {
if (JOptionPane.YES_OPTION != JOptionPane.showConfirmDialog(getControlPanel(), "Are you sure you want to remove the selected Signature Gene Sets\nand associated nodes?", "Remove Signature Gene Sets", JOptionPane.YES_NO_OPTION))
return;
RemoveSignatureDataSetsTask task = removeDataSetsTaskFactory.create(dataSets, map);
dialogTaskManager.execute(new TaskIterator(task), new TaskObserver() {
@Override
public void taskFinished(ObservableTask task) {
}
@Override
public void allFinished(FinishStatus finishStatus) {
viewPanel.updateDataSetSelector();
updateLegends(viewPanel);
viewPanel.getNetworkView().updateView();
}
});
}
}
Aggregations