final String id = element.getId();
if (id != null) {
if (id.contains("_server_")) {
final String server = element.getAttribute(DATA_SERVER_NAME);
final String host = element.getAttribute(DATA_HOST_NAME);
final LifecycleOperation op = getLifecycleOperation(id);
if (op != null) {
Feedback.confirm("Modify Server",
"Do really want to " + op.name().toLowerCase() + " server " + server + "?",
new Feedback.ConfirmationHandler() {
@Override
public void onConfirmation(boolean isConfirmed) {
if (isConfirmed) {
presenter.onServerInstanceLifecycle(host, server, op);
}
}
});
}
} else if (id.contains("_group_")) {
final String group = element.getAttribute(DATA_GROUP_NAME);
final LifecycleOperation op = getLifecycleOperation(id);
if (op != null) {
Feedback.confirm("Modify Server", "Do really want to " + op.name()
.toLowerCase() + " all servers in group " + group + "?",
new Feedback.ConfirmationHandler() {
@Override
public void onConfirmation(boolean isConfirmed) {
if (isConfirmed) {