Message title = isLeaf ? INFO_CTRL_PANEL_DELETING_ENTRY_TITLE.get() :
INFO_CTRL_PANEL_DELETING_SUBTREE_TITLE.get();
ProgressDialog dlg = new ProgressDialog(
Utilities.createFrame(),
Utilities.getParentDialog(this), title, getInfo());
DeleteEntryTask newTask = new DeleteEntryTask(getInfo(), dlg,
new TreePath[]{treePath}, controller);
for (Task task : getInfo().getTasks())
{
task.canLaunch(newTask, errors);
}