| | |
| | | { |
| | | task.canLaunch(newTask, errors); |
| | | } |
| | | if (errors.size() == 0) |
| | | if (errors.isEmpty()) |
| | | { |
| | | progressDialog.appendProgressHtml("<br><br>"); |
| | | launchOperation(newTask, INFO_CTRL_PANEL_REBUILDING_INDEXES_SUMMARY.get(backendName), |
| | |
| | | progressDialog.toFront(); |
| | | } |
| | | } |
| | | if (errors.size() > 0) |
| | | if (!errors.isEmpty()) |
| | | { |
| | | displayErrorDialog(errors); |
| | | } |
| | |
| | | @Override |
| | | public void run() |
| | | { |
| | | combo.setVisible(newElements.size() > 0); |
| | | lNoBackendsFound.setVisible(newElements.size() == 0); |
| | | boolean noElems = newElements.isEmpty(); |
| | | combo.setVisible(!noElems); |
| | | lNoBackendsFound.setVisible(noElems); |
| | | } |
| | | }); |
| | | } |
| | |
| | | { |
| | | task.canLaunch(newTask, errors); |
| | | } |
| | | if (errors.size() == 0) |
| | | if (errors.isEmpty()) |
| | | { |
| | | launchOperation(newTask, |
| | | INFO_CTRL_PANEL_STARTING_SERVER_SUMMARY.get(), |
| | |
| | | task.canLaunch(newTask, errors); |
| | | } |
| | | boolean confirmed = true; |
| | | if (errors.size() == 0) |
| | | if (errors.isEmpty()) |
| | | { |
| | | confirmed = displayConfirmationDialog(INFO_CTRL_PANEL_CONFIRMATION_REQUIRED_SUMMARY.get(), |
| | | INFO_CTRL_PANEL_CONFIRM_STOP_SERVER_DETAILS.get()); |
| | | } |
| | | if (errors.size() == 0 && confirmed) |
| | | if (errors.isEmpty() && confirmed) |
| | | { |
| | | launchOperation(newTask, |
| | | INFO_CTRL_PANEL_STOPPING_SERVER_SUMMARY.get(), |
| | |
| | | ERR_CTRL_PANEL_STOPPING_SERVER_ERROR_DETAILS, progressDialog); |
| | | progressDialog.setVisible(true); |
| | | } |
| | | if (errors.size() > 0) |
| | | if (!errors.isEmpty()) |
| | | { |
| | | displayErrorDialog(errors); |
| | | } |
| | |
| | | task.canLaunch(newTask, errors); |
| | | } |
| | | boolean confirmed = true; |
| | | if (errors.size() == 0) |
| | | if (errors.isEmpty()) |
| | | { |
| | | confirmed = displayConfirmationDialog(INFO_CTRL_PANEL_CONFIRMATION_REQUIRED_SUMMARY.get(), |
| | | INFO_CTRL_PANEL_CONFIRM_RESTART_SERVER_DETAILS.get()); |
| | | } |
| | | if (errors.size() == 0 && confirmed) |
| | | if (errors.isEmpty() && confirmed) |
| | | { |
| | | launchOperation(newTask, |
| | | INFO_CTRL_PANEL_STOPPING_SERVER_SUMMARY.get(), |
| | |
| | | ERR_CTRL_PANEL_RESTARTING_SERVER_ERROR_DETAILS, progressDialog); |
| | | progressDialog.setVisible(true); |
| | | } |
| | | if (errors.size() > 0) |
| | | if (!errors.isEmpty()) |
| | | { |
| | | displayErrorDialog(errors); |
| | | } |