コード例 #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();
 }
コード例 #2
0
 public void execute() {
   super.execute();
   setUndoActivity(createUndoActivity());
   ((InsertImageCommand.UndoActivity) getUndoActivity()).insertImage();
   view().checkDamage();
 }