UndoableEdit edit = super.editToBeUndone();
if (edit == null)
throw new CannotUndoException();
doIt = true;
if (edit instanceof WoPeDUndoableEdit) {
WoPeDUndoableEdit wopedEdit = (WoPeDUndoableEdit) edit;
if (wopedEdit.getInserted() != null){
for (int i = 0; i < wopedEdit.getInserted().length; i++){
if (wopedEdit.getInserted()[i] instanceof SubProcessModel){
Object[] options = {
Messages.getString("Popup.Confirm.SubProcess.Ok"),
Messages.getString("Popup.Confirm.SubProcess.No") };
int j = JOptionPane.showOptionDialog(null,
Messages.getString("Popup.Confirm.SubProcess.Info"),