ProgressDialog progressDialog = new ProgressDialog(
Utilities.createFrame(), Utilities.getParentDialog(this), getTitle(),
getInfo());
HashSet<String> baseDNs = new HashSet<String>();
baseDNs.add(getSelectedBaseDN());
RebuildIndexTask newTask = new RebuildIndexTask(getInfo(), progressDialog,
baseDNs, addRemove.getSelectedListModel().getData());
for (Task task : getInfo().getTasks())
{
task.canLaunch(newTask, errors);
}
boolean confirmed = true;
if ((errors.isEmpty()) && isServerRunning())
{
String backendName = newTask.getBackends().iterator().next();
confirmed = displayConfirmationDialog(
INFO_CTRL_PANEL_CONFIRMATION_REQUIRED_SUMMARY.get(),
INFO_CTRL_PANEL_CONFIRM_REBUILD_INDEX_DETAILS.get(backendName));
}
if ((errors.isEmpty()) && confirmed)