Triggering a project reload within the Designer Context

I'm curious if there is a way to trigger a refresh of a project's resources within designer using the SDK. I tried looking to see if there was something to accomplish this, but I'm not certain I've found anything worthwhile.

This is necessary when manually editing the contents of the project directory. The designer, I assume, has it's own cache of the project resources and does not pull the local files unless reloaded. I'm looking for a functionality similar to the "Files -> Update Project" button.

Could this possibly be accomplished by calling modifyResource‚Äč(ProjectResource resource) recursively throughout the project directory?

It's possible, but requires a technically unsafe cast to an internal implementation class that may change out from underneath you.

See Ignition Extensions: