diff options
| author | Fuwn <[email protected]> | 2021-05-03 16:38:41 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2021-05-03 16:38:41 -0700 |
| commit | e1e781bb2135ef78592226f1a3eaba4925702f1f (patch) | |
| tree | 8a5b590463ed413e1c6eabb719130e701b95ca63 /NET/worlds/scape/UndoablDelete.java | |
| download | worlds.jar-main.tar.xz worlds.jar-main.zip | |
Diffstat (limited to 'NET/worlds/scape/UndoablDelete.java')
| -rw-r--r-- | NET/worlds/scape/UndoablDelete.java | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/NET/worlds/scape/UndoablDelete.java b/NET/worlds/scape/UndoablDelete.java new file mode 100644 index 0000000..4186392 --- /dev/null +++ b/NET/worlds/scape/UndoablDelete.java @@ -0,0 +1,35 @@ +/* */ package NET.worlds.scape; +/* */ +/* */ import java.util.Vector; +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ class UndoablDelete +/* */ implements Undoable +/* */ { +/* */ protected VectorProperty prop; +/* */ protected Object obj; +/* */ +/* */ UndoablDelete(VectorProperty prop, int index) +/* */ { +/* 20 */ this.prop = prop; +/* 21 */ this.obj = ((Vector)prop.get()).elementAt(index); +/* 22 */ prop.delete(this.obj); +/* */ } +/* */ +/* */ public void undo() +/* */ { +/* 27 */ this.prop.add(this.obj); +/* */ } +/* */ } + + +/* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\scape\UndoablDelete.class + * Java compiler version: 6 (50.0) + * JD-Core Version: 0.7.1 + */
\ No newline at end of file |