UndoRedo-Demo.zip

上传者: 19244927 | 上传时间: 2021-03-05 12:03:12 | 文件大小: 57KB | 文件类型: ZIP
介绍文章:https://blog.csdn.net/qq_19244927/article/details/114386243 大概实现原理:将每次执行过的命令和数据保存到undo回退队列中,当执行undo操作时候取出队列数据进行执行即可,若是添加操作,undo时则执行删除操作,若是删除操作,undo时则实行添加操作,每次执行完后放入redo队列中,用于下一次的redo。

文件下载

资源详情

[{"title":"( 66 个子文件 57KB ) UndoRedo-Demo.zip","children":[{"title":".git","children":[{"title":"info","children":[{"title":"exclude <span style='color:#111;'> 240B </span>","children":null,"spread":false}],"spread":true},{"title":"objects","children":[{"title":"pack","children":null,"spread":false},{"title":"69","children":[{"title":"17d7bfcb0b09978556f3284e84dd5d5bb9cf57 <span style='color:#111;'> 432B </span>","children":null,"spread":false}],"spread":true},{"title":"e1","children":[{"title":"3b065c26d753b604b209f0de417ec7954f938d <span style='color:#111;'> 116B </span>","children":null,"spread":false}],"spread":true},{"title":"info","children":null,"spread":false},{"title":"66","children":[{"title":"a9c309ca676cf32de00657873b215e3bdb2c9c <span style='color:#111;'> 178B </span>","children":null,"spread":false}],"spread":true},{"title":"09","children":[{"title":"a3cd8b8838c8a3a8fe03ab8a547d998c7be0c2 <span style='color:#111;'> 137B </span>","children":null,"spread":false}],"spread":true},{"title":"71","children":[{"title":"d53dcc83ac5f0c10269ef67366007cc1cda041 <span style='color:#111;'> 46B </span>","children":null,"spread":false}],"spread":true},{"title":"2e","children":[{"title":"acc275d25c20dd3761db6d4784752893badb49 <span style='color:#111;'> 45B </span>","children":null,"spread":false}],"spread":true},{"title":"ce","children":[{"title":"c82b14cf6ce51978499030c0cfde943ae27dea <span style='color:#111;'> 554B </span>","children":null,"spread":false}],"spread":true},{"title":"96","children":[{"title":"f945375f111ddb97a6fe42cdcc945abf330f37 <span style='color:#111;'> 826B </span>","children":null,"spread":false}],"spread":true},{"title":"92","children":[{"title":"3f7a4f7389d2518e270d8f887bc451a1689bb5 <span style='color:#111;'> 490B </span>","children":null,"spread":false}],"spread":true},{"title":"51","children":[{"title":"1a9a2c7b4c03aac39c6c988c518c26acf331be <span style='color:#111;'> 46B </span>","children":null,"spread":false}],"spread":false},{"title":"c3","children":[{"title":"cafc4eb90c34a1a7acb5ab7c76f80b8eb8c866 <span style='color:#111;'> 127B </span>","children":null,"spread":false}],"spread":false},{"title":"ac","children":[{"title":"5a482ddf2615f7eec947e604d7fe59f7790188 <span style='color:#111;'> 858B </span>","children":null,"spread":false}],"spread":false},{"title":"d1","children":[{"title":"1ef79b7c2e3444d2bca680d2c7ebcdf5d4b8fc <span style='color:#111;'> 268B </span>","children":null,"spread":false}],"spread":false},{"title":"2f","children":[{"title":"d9176cf899c92ca0ab57d2472611e8e2834c26 <span style='color:#111;'> 241B </span>","children":null,"spread":false}],"spread":false},{"title":"05","children":[{"title":"70042ce5774ec5a3c882b99f109a88062cfa4e <span style='color:#111;'> 951B </span>","children":null,"spread":false},{"title":"4632b69cb77dff8e5308eb68deb76583bcfa0e <span style='color:#111;'> 448B </span>","children":null,"spread":false}],"spread":false},{"title":"35","children":[{"title":"1f0f81cf48e8063f39318371ee3900ba82348b <span style='color:#111;'> 47B </span>","children":null,"spread":false}],"spread":false},{"title":"4b","children":[{"title":"356299842df1157eed4d6cc06b9ec0f4d54eb6 <span style='color:#111;'> 303B </span>","children":null,"spread":false}],"spread":false},{"title":"d5","children":[{"title":"c2602c5542814826422f8d6517c82f9a8d2192 <span style='color:#111;'> 121B </span>","children":null,"spread":false}],"spread":false},{"title":"33","children":[{"title":"3229ed399b558e78880afddd214ecb813c565f <span style='color:#111;'> 550B </span>","children":null,"spread":false}],"spread":false},{"title":"40","children":[{"title":"5b8ed2c54d7d01b87e0907436c52b7450b34bd <span style='color:#111;'> 813B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"HEAD <span style='color:#111;'> 23B </span>","children":null,"spread":false},{"title":"description <span style='color:#111;'> 73B </span>","children":null,"spread":false},{"title":"config <span style='color:#111;'> 130B </span>","children":null,"spread":false},{"title":"index <span style='color:#111;'> 1.40KB </span>","children":null,"spread":false},{"title":"refs","children":[{"title":"tags","children":null,"spread":false},{"title":"heads","children":[{"title":"master <span style='color:#111;'> 41B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"COMMIT_EDITMSG <span style='color:#111;'> 5B </span>","children":null,"spread":false},{"title":"hooks","children":[{"title":"commit-msg.sample <span style='color:#111;'> 896B </span>","children":null,"spread":false},{"title":"pre-receive.sample <span style='color:#111;'> 544B </span>","children":null,"spread":false},{"title":"fsmonitor-watchman.sample <span style='color:#111;'> 4.55KB </span>","children":null,"spread":false},{"title":"pre-rebase.sample <span style='color:#111;'> 4.78KB </span>","children":null,"spread":false},{"title":"prepare-commit-msg.sample <span style='color:#111;'> 1.46KB </span>","children":null,"spread":false},{"title":"update.sample <span style='color:#111;'> 3.56KB </span>","children":null,"spread":false},{"title":"pre-push.sample <span style='color:#111;'> 1.34KB </span>","children":null,"spread":false},{"title":"pre-commit.sample <span style='color:#111;'> 1.60KB </span>","children":null,"spread":false},{"title":"pre-merge-commit.sample <span style='color:#111;'> 416B </span>","children":null,"spread":false},{"title":"post-update.sample <span style='color:#111;'> 189B </span>","children":null,"spread":false},{"title":"push-to-checkout.sample <span style='color:#111;'> 2.72KB </span>","children":null,"spread":false},{"title":"applypatch-msg.sample <span style='color:#111;'> 478B </span>","children":null,"spread":false},{"title":"pre-applypatch.sample <span style='color:#111;'> 424B </span>","children":null,"spread":false}],"spread":false},{"title":"logs","children":[{"title":"HEAD <span style='color:#111;'> 150B </span>","children":null,"spread":false},{"title":"refs","children":[{"title":"heads","children":[{"title":"master <span style='color:#111;'> 150B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"src","children":[{"title":"main","children":[{"title":"resources","children":null,"spread":false},{"title":"java","children":[{"title":"com","children":[{"title":"lcry","children":[{"title":"TestSomeThing.java <span style='color:#111;'> 2.63KB </span>","children":null,"spread":false},{"title":"action","children":[{"title":"Action.java <span style='color:#111;'> 343B </span>","children":null,"spread":false},{"title":"DeleteAction.java <span style='color:#111;'> 1.18KB </span>","children":null,"spread":false},{"title":"AddAction.java <span style='color:#111;'> 1.45KB </span>","children":null,"spread":false},{"title":"ActionManager.java <span style='color:#111;'> 2.24KB </span>","children":null,"spread":false},{"title":"CleanAction.java <span style='color:#111;'> 941B </span>","children":null,"spread":false}],"spread":true},{"title":"operate","children":[{"title":"OperateManager.java <span style='color:#111;'> 2.45KB </span>","children":null,"spread":false},{"title":"OperateTypeEnum.java <span style='color:#111;'> 529B </span>","children":null,"spread":false},{"title":"SomeThingDomain.java <span style='color:#111;'> 798B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"test","children":[{"title":"java","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"pom.xml <span style='color:#111;'> 939B </span>","children":null,"spread":false},{"title":"Readme.md <span style='color:#111;'> 363B </span>","children":null,"spread":false},{"title":".idea","children":[{"title":".gitignore <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"misc.xml <span style='color:#111;'> 1.78KB </span>","children":null,"spread":false},{"title":"encodings.xml <span style='color:#111;'> 200B </span>","children":null,"spread":false},{"title":"$PROJECT_FILE$ <span style='color:#111;'> 364B </span>","children":null,"spread":false},{"title":"workspace.xml <span style='color:#111;'> 5.38KB </span>","children":null,"spread":false},{"title":"vcs.xml <span style='color:#111;'> 185B </span>","children":null,"spread":false},{"title":"free-mybatis-generator-config.xml <span style='color:#111;'> 792B </span>","children":null,"spread":false},{"title":"qaplug_profiles.xml <span style='color:#111;'> 83.95KB </span>","children":null,"spread":false},{"title":"dictionaries <span style='color:#111;'> 158B </span>","children":null,"spread":false},{"title":"inspectionProfiles","children":[{"title":"Project_Default.xml <span style='color:#111;'> 1.52KB </span>","children":null,"spread":false}],"spread":false},{"title":"compiler.xml <span style='color:#111;'> 573B </span>","children":null,"spread":false},{"title":"jarRepositories.xml <span style='color:#111;'> 871B </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明