final ProjectResource[] context = getContext().getResources();
if (context.length > 0) {
final String message = getLanguage().getText("msg6") + " "
+ getDisplayName(context)+ "?";
final String title = getLanguage().getText("question");
Choice choice = myUIFacade.showConfirmationDialog(message, title);
if (choice==Choice.YES) {
myUIFacade.getUndoManager().undoableEdit("Resource removed",
new Runnable() {
public void run() {
deleteResources(context);