예제 #1
0
 public void execute() {
   super.execute();
   setUndoActivity(createUndoActivity());
   getUndoActivity().setAffectedFigures(view().selection());
   FigureEnumeration fe = getUndoActivity().getAffectedFigures();
   while (fe.hasNextFigure()) {
     view().drawing().bringToFront(fe.nextFigure());
   }
   view().checkDamage();
 }
 public void execute() {
   super.execute();
   setUndoActivity(createUndoActivity());
   ((InsertImageCommand.UndoActivity) getUndoActivity()).insertImage();
   view().checkDamage();
 }