1
2 package hep.wired.edit;
3
4 import java.util.logging.Logger;
5 import javax.swing.undo.UndoableEdit;
6
7 import hep.wired.services.RecordPlot;
8
9 /***
10 * No Operation Edit, useful to fill a compound edit.
11 *
12 * @author Mark Donszelmann
13 * @version $Id: NoOperation.java 256 2004-06-07 23:31:10Z duns $
14 */
15 public class NoOperation extends WiredEdit {
16
17 private static Logger logger = Logger.getLogger(NoOperation.class.getPackage().getName());
18
19 /***
20 * Creates a dummy operation, which can be used as placeholder.
21 */
22 public NoOperation() {
23 super();
24 }
25
26 public WiredEdit copy(RecordPlot plot) {
27 WiredEdit copy = new NoOperation();
28 copy.setRecordPlot(plot);
29 return copy;
30 }
31
32 public String getPresentationName() {
33 return "No Operation";
34 }
35
36 public boolean addEdit(UndoableEdit edit) {
37 return (edit instanceof NoOperation);
38 }
39
40 public void redoEdit() {
41 }
42
43 public void undoEdit() {
44 }
45
46 }