@Override
public IStatus execute(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
if(getPostOperationEnabled() instanceof ISaveablePart){
- if(!MessagingUtils.confirmDialog("Confirm deletion", "Do you really want to delete the selected element?")){
+ String confirmationQuestion = "Do you really want to delete the selected element";
+ if(deleteConfigurator.isDeleteChildren()){
+ confirmationQuestion += " and its children";
+ }
+ confirmationQuestion += "?";
+ if(!MessagingUtils.confirmDialog("Confirm deletion", confirmationQuestion)){
return Status.CANCEL_STATUS;
}
if(((ISaveablePart) getPostOperationEnabled()).isDirty()){