if (!isValidText(getBackupText())) { FigureEnumeration fe  = getAffectedFigures(); while (fe.hasNextFigure()) { getDrawingView().drawing().orphan(fe.nextFigure()); } }  else if (!isValidText(getOriginalText())) { FigureEnumeration fe  = getAffectedFigures(); while (fe.hasNextFigure()) { getDrawingView().drawing().add(fe.nextFigure()); setText(getBackupText()); } } else { setText(getBackupText()); }
setText(getBackupText());
		public boolean redo() {			if (!super.redo()) {				return false;			}			getDrawingView().clearSelection();			// the text figure did exist but was remove			if (!isValidText(getBackupText())) {				FigureEnumeration fe  = getAffectedFigures();				while (fe.hasNextFigure()) {					getDrawingView().drawing().orphan(fe.nextFigure());				}			}			// the text figure didn't exist before			else if (!isValidText(getOriginalText())) {				FigureEnumeration fe  = getAffectedFigures();				while (fe.hasNextFigure()) {					getDrawingView().drawing().add(fe.nextFigure());					setText(getBackupText());				}			}			else {				setText(getBackupText());			}			return true;		}