@Override public void onCreateProperty(String reference, final PropertyRecord prop) { if (propertyWindow != null && propertyWindow.isShowing()) { propertyWindow.hide(); } ModelNode address = new ModelNode(); address.add("host", hostSelection.getName()); address.add("server-config", reference); address.add("system-property", prop.getKey()); CreatePropertyCmd cmd = new CreatePropertyCmd(dispatcher, factory, address); cmd.execute( prop, new SimpleCallback<Boolean>() { @Override public void onSuccess(Boolean result) { loadServerConfigurations(); } }); }
public void closeDialoge() { if (window != null && window.isShowing()) { window.hide(); } }