logger.warn("Component '" + deployMessage.getFullName() + "' failed test delete: '"
+ deployMessage.getProblem() + "'. will be deleted locally only.");
projectPackageList.removeComponentByFilePath(deployMessage.getFileName(), true, true);
monitorCheck(monitor);
MessageDialogRunnable messageDialogRunnable =
new MessageDialogRunnable("Remote Delete Error", null, UIMessages.getString(
"Refactor.Delete.Complete.CannotDelete.message", new String[] {
deployMessage.getFileName(), deployMessage.getProblem() }),
MessageDialog.WARNING, new String[] { IDialogConstants.OK_LABEL,
IDialogConstants.CANCEL_LABEL }, 0);
Display.getDefault().syncExec(messageDialogRunnable);
if (messageDialogRunnable.getAction() == 1) {
logger.warn("Canceling delete operation");
throw new OperationCanceledException("Delete operation canceled");
}
}
}