Help fixing Generate toString plugin for 957
I'm trying to modify the Generate toString plugin to work with build 957. When I hit alt-insert with it loaded, I get an exception around the lines:
VirtualFile vFile = FileEditorManager.getInstance(project).getSelectedFile();
PsiFile psiFile = manager.findFile(vFile);
It seems that getSelectedFile doesn't exist anymore. I can't seem to find a "replacement" - could anyone familiar with the openAPI help me out? This was one of my favorite plugins and I haven't been able to use it for quite a few builds now.
Thanks!
Please sign in to leave a comment.
"Keith Lea" <keith@cs.oswego.edu> wrote in message
news:21295685.1066943628857.JavaMail.itn@is.intellij.net...
When I hit alt-insert with it loaded, I get an exception around the lines:
I had fixed that problem for 957 but didn't have time to fix the failed
assertion when ToString pops up the field chooser dialog. I've uploaded the
1.51 version with the failing assertion to the wiki
http://www.intellij.org/twiki/bin/view/Main/ToStringPlugin
(I believe this thread belongs more to j.i.openapi or j.i.plugins)
Vince.