affected.add(f);
affected.add(0, f);
	public void execute() {		super.execute();		setUndoActivity(createUndoActivity());		/* ricardo_padilha: bugfix for correct delete/undelete behavior		 * When enumerating the affected figures we must not forget the dependent		 * figures, since they are deleted as well! 		 */		FigureEnumeration fe = view().selection();		List affected = CollectionsFactory.current().createList();		Figure f;		FigureEnumeration dfe;		while (fe.hasNextFigure()) {			f = fe.nextFigure();			affected.add(f);			dfe = f.getDependendFigures();			if (dfe != null) {				while (dfe.hasNextFigure()) {					affected.add(dfe.nextFigure());				}			}		}		fe = new FigureEnumerator(affected);		getUndoActivity().setAffectedFigures(fe);		/* ricardo_padilha: end of bugfix */		deleteFigures(getUndoActivity().getAffectedFigures());		view().checkDamage();	}