Sorry I'm asking all these questions at once, but I have some loose ends to tie up so I can finish my plugin. I've already been at it it all day now, trying to fix some things that I expected to be really simple, but each and every one of them seems to takes HOURS :(
Does anyone have a proper code-sample of altering a bunch of PsiClasses while showing a ProgressIndicator? I've been searching the OpenAPI docs (which are mostly empty) and this forum (either the solutions provided don't work anymore or the questions are not fully answered).
After about 5 hours of not getting any further I'm getting rather annoyed. I mean.... how hard can it be to just iterate over some object and alter them?
It seems that every way I can find, that allows me to get a ProgressIndicator, requires a seperate Runnable, which means the Thread is no longer the SwingDispatchThread. When I use runWriteAction I cannot seem to get a ProgressIndicator to show up. When does ProgressManager.getInstance().getProgressIndicator() exactly return a ProgressIndicator?
It does after calling runProcessWithProgressSynchronously, but I can't use that, since it requires a seperate Runnable, which is not executed in the SwingDispatchThread?
I'm sure it must be really simple and looking at all those past requests for help on this subject, I find it hard to believe there's still no proper code-example or documentation for this, but I really can't seem to find any. I also haven't been able to find plugins that perform write-actions while showing a ProgressIndicator and have sourcecode available.
So if anyone can help me out, I would really appreciate it.