I'm attempting to use Resharper inside a custom Project Template Wizard in Visual Studio. Inside this wizard, I want to perform some resharper refactorings after the template has been expanded. I have the Resharper Shell.Instance, the solution, and the project that I just expanded. What I'm missing is the link of how I find, for instance, an INamespaceDeclaration so I can run the rename refactoring on it.
Can anyone help? I found TextControlToPsi, so I could open a file I know to contain the namespace and refactor there, but I'd rather something that allows me to find all ITreeNodes in a given project. I bet I'm missing something obvious.