}
}
}
private void removeClient(PuppetDBConnection client) {
final PuppetDBConnectionPreferences prefs = client.getPreferences();
Shell shell = viewer.getControl().getShell();
if(MessageDialog.openConfirm(
shell, UIPlugin.getLocalString("_UI_Confirm_Removal"),
UIPlugin.getLocalString("_UI_Is_remove_of_client_ok", prefs.getIdentifier()))) {
Util.alterPreferences(shell, puppetDBManager, new Callable<Void>() {
@Override
public Void call() throws Exception {
prefs.remove();
return null;
}
});
viewer.setInput(getPuppetDBConnections(viewer, puppetDBManager));
}