use of org.cytoscape.app.internal.exception.AppDisableException in project cytoscape-impl by cytoscape.
the class CurrentlyInstalledAppsPanel method disableSelectedButtonActionPerformed.
private void disableSelectedButtonActionPerformed(ActionEvent evt) {
// Obtain App objects corresponding to currently selected table entries
Set<App> selectedApps = getSelectedApps();
Map<App, Collection<App>> otherAppsDependingOn = getOtherAppsDependingOn(selectedApps);
if (otherAppsDependingOn != null && !continueWithConflicts(otherAppsDependingOn))
return;
for (App app : selectedApps) {
if (app.getStatus().equals(AppStatus.DISABLED))
continue;
try {
appManager.disableApp(app);
} catch (AppDisableException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
disableSelectedButton.setEnabled(false);
enableSelectedButton.setEnabled(true);
uninstallSelectedButton.setEnabled(true);
}
Aggregations