String message = "If you already have this document open in " +
"Office, please close it before continuing. Click OK to " +
"delete this parcel.";
if (settings.getWarnBeforeParcelDelete() == true) {
NagDialog warning = NagDialog.createConfirmationDialog(
message, "Show this message in future", true);
boolean result = warning.show();
if (warning.getState() == false)
settings.setWarnBeforeParcelDelete(false);
if (result == false)
return;
}