René's URL Explorer Experiment


Title: Adds Undo/Redo to ReClass.NET by FransBouma · Pull Request #263 · ReClassNET/ReClass.NET · GitHub

Open Graph Title: Adds Undo/Redo to ReClass.NET by FransBouma · Pull Request #263 · ReClassNET/ReClass.NET

X Title: Adds Undo/Redo to ReClass.NET by FransBouma · Pull Request #263 · ReClassNET/ReClass.NET

Description: I've implemented this in a separate branch (with the changes from my previous PR #262 already merged). What's changed? Undo/Redo support for class creation/deletion/modification Undo/Redo support for changing nodes / node types / address etc. Added an undo/redo button pair to the toolbar using the existing icons already in the resources Defined some toolbar buttons for some node types to be able to overflow the toolbar if the window is narrow I didn't implement undo/redo for enums as the enum functionality is a bit broken I think (there's an add event but not a remove event for instance. I had it working more or less but didn't want to add it just yet) so I left it as-is. I added this using Algorithmia's command system. This is a library I wrote a long time ago and maintain since, and it's very stable. It comes with 2 nuget packages (algorithmia and bcl extensions). The system basically tracks commands executed through the command queue manager and records every command in the 'active' queue on top of the stack. So when a command A changes something that executes a command B, B will end up in A's command queue and B's command queue is then put on top of the stack. This way you can track multiple commands within the scope of a single command and undo/redo them in 1 go. A command is an object with a lambda that makes a change and it has optional lambda's to obtain the pre-change state and the post-change state. Algorithmia has several datastructures that mimic BCL classes (like list) and wrappers (to wrap members to make them undo/redo aware) and they take care of change checking and event raising as well. I have tested it with several class hierarchies and I think it works ok, but I know from experience that Undo/Redo code can get hairy at times especially in edge cases, e.g. multiple undo/redo sequences work ok but perhaps I missed an edge case and an event handler creates duplicate elements when redoing the whole tree of commands. Let me know if you need additional info, or if I have to make additional changes :) NOTE the commits in this PR are apparently also the ones in #262 :( Which sucks, and might be complicate file reviewing. If you want to wait reviewing this because of that, that's fine. I'm sorry this happened, I honestly don't know how to avoid that.

Open Graph Description: I've implemented this in a separate branch (with the changes from my previous PR #262 already merged). What's changed? Undo/Redo support for class creation/deletion/modification Undo/Redo ...

X Description: I've implemented this in a separate branch (with the changes from my previous PR #262 already merged). What's changed? Undo/Redo support for class creation/deletion/modification Un...

Opengraph URL: https://github.com/ReClassNET/ReClass.NET/pull/263

X: @github

direct link

Domain: patch-diff.githubusercontent.com

route-pattern/:user_id/:repository/pull/:id/checks(.:format)
route-controllerpull_requests
route-actionchecks
fetch-noncev2:8f1a5c95-951b-38dd-77c1-9659fdc72603
current-catalog-service-hash87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a
request-idB982:367630:1CA1E2:278A4A:696F32A6
html-safe-nonce3038f39768ed0ab6aa85912b19a469c9399fe2a93cff83daa6e8668815d1fc6f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOTgyOjM2NzYzMDoxQ0ExRTI6Mjc4QTRBOjY5NkYzMkE2IiwidmlzaXRvcl9pZCI6IjQ3NTU2NDA4NjQyNTgwNzczNTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac68411c00a4ff973356e1e40ed6fa1331d7b931adc89b77dcc22bffaef164fced
hovercard-subject-tagpull_request:1419779041
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/checks
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/ReClassNET/ReClass.NET/pull/263/checks
twitter:imagehttps://avatars.githubusercontent.com/u/3628530?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/3628530?s=400&v=4
og:image:altI've implemented this in a separate branch (with the changes from my previous PR #262 already merged). What's changed? Undo/Redo support for class creation/deletion/modification Undo/Redo ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneb278ad162d35332b6de714dfb005de04386c4d92df6475522bef910f491a35ee
turbo-cache-controlno-preview
go-importgithub.com/ReClassNET/ReClass.NET git https://github.com/ReClassNET/ReClass.NET.git
octolytics-dimension-user_id36203059
octolytics-dimension-user_loginReClassNET
octolytics-dimension-repository_id70486261
octolytics-dimension-repository_nwoReClassNET/ReClass.NET
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id70486261
octolytics-dimension-repository_network_root_nwoReClassNET/ReClass.NET
turbo-body-classeslogged-out env-production page-responsive full-width full-width-p-0
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release39aed5006635ab6f45e6b77d23e73b08a00272a3
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/ReClassNET/ReClass.NET/pull/263/checks#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FReClassNET%2FReClass.NET%2Fpull%2F263%2Fchecks
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FReClassNET%2FReClass.NET%2Fpull%2F263%2Fchecks
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Fchecks&source=header-repo&source_repo=ReClassNET%2FReClass.NET
Reloadhttps://patch-diff.githubusercontent.com/ReClassNET/ReClass.NET/pull/263/checks
Reloadhttps://patch-diff.githubusercontent.com/ReClassNET/ReClass.NET/pull/263/checks
Reloadhttps://patch-diff.githubusercontent.com/ReClassNET/ReClass.NET/pull/263/checks
ReClassNET https://patch-diff.githubusercontent.com/ReClassNET
ReClass.NEThttps://patch-diff.githubusercontent.com/ReClassNET/ReClass.NET
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2FReClassNET%2FReClass.NET
Fork 392 https://patch-diff.githubusercontent.com/login?return_to=%2FReClassNET%2FReClass.NET
Star 2.1k https://patch-diff.githubusercontent.com/login?return_to=%2FReClassNET%2FReClass.NET
Code https://patch-diff.githubusercontent.com/ReClassNET/ReClass.NET
Issues 71 https://patch-diff.githubusercontent.com/ReClassNET/ReClass.NET/issues
Pull requests 12 https://patch-diff.githubusercontent.com/ReClassNET/ReClass.NET/pulls
Discussions https://patch-diff.githubusercontent.com/ReClassNET/ReClass.NET/discussions
Actions https://patch-diff.githubusercontent.com/ReClassNET/ReClass.NET/actions
Projects 0 https://patch-diff.githubusercontent.com/ReClassNET/ReClass.NET/projects
Security Uh oh! There was an error while loading. Please reload this page. https://patch-diff.githubusercontent.com/ReClassNET/ReClass.NET/security
Please reload this pagehttps://patch-diff.githubusercontent.com/ReClassNET/ReClass.NET/pull/263/checks
Insights https://patch-diff.githubusercontent.com/ReClassNET/ReClass.NET/pulse
Code https://patch-diff.githubusercontent.com/ReClassNET/ReClass.NET
Issues https://patch-diff.githubusercontent.com/ReClassNET/ReClass.NET/issues
Pull requests https://patch-diff.githubusercontent.com/ReClassNET/ReClass.NET/pulls
Discussions https://patch-diff.githubusercontent.com/ReClassNET/ReClass.NET/discussions
Actions https://patch-diff.githubusercontent.com/ReClassNET/ReClass.NET/actions
Projects https://patch-diff.githubusercontent.com/ReClassNET/ReClass.NET/projects
Security https://patch-diff.githubusercontent.com/ReClassNET/ReClass.NET/security
Insights https://patch-diff.githubusercontent.com/ReClassNET/ReClass.NET/pulse
Sign up for GitHub https://patch-diff.githubusercontent.com/signup?return_to=%2FReClassNET%2FReClass.NET%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://patch-diff.githubusercontent.com/login?return_to=%2FReClassNET%2FReClass.NET%2Fissues%2Fnew%2Fchoose
FransBoumahttps://patch-diff.githubusercontent.com/FransBouma
ReClassNET:masterhttps://patch-diff.githubusercontent.com/ReClassNET/ReClass.NET/tree/master
FransBouma:UndoRedohttps://patch-diff.githubusercontent.com/FransBouma/ReClass.NET/tree/UndoRedo
Conversation 8 https://patch-diff.githubusercontent.com/ReClassNET/ReClass.NET/pull/263
Commits 17 https://patch-diff.githubusercontent.com/ReClassNET/ReClass.NET/pull/263/commits
Checks 0 https://patch-diff.githubusercontent.com/ReClassNET/ReClass.NET/pull/263/checks
Files changed https://patch-diff.githubusercontent.com/ReClassNET/ReClass.NET/pull/263/files
Please reload this pagehttps://patch-diff.githubusercontent.com/ReClassNET/ReClass.NET/pull/263/checks
Please reload this pagehttps://patch-diff.githubusercontent.com/ReClassNET/ReClass.NET/pull/263/checks
Adds Undo/Redo to ReClass.NET https://patch-diff.githubusercontent.com/ReClassNET/ReClass.NET/pull/263/checks#top
Please reload this pagehttps://patch-diff.githubusercontent.com/ReClassNET/ReClass.NET/pull/263/checks
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.