1

I'm writing a Resharper ContextAction, and the progress indicator that pops up after a second keeps stealing the focus from my text box. How can I suppress the progress indicator that gets passed to ExecutePsiTransaction?

Matthew Piziak
  • 3,430
  • 4
  • 35
  • 49

3 Answers3

4

Ups. Try overriding ExecuteBeforeProgressAndTransaction and calling your dialog from there instead of from ExecutePsiTransaction

Dmitry Osinovskiy
  • 9,999
  • 1
  • 47
  • 38
0

Just pass NullProgressIndicator.INSTANCE

Evgeny Pasynkov
  • 693
  • 4
  • 5
  • I tried overriding `BulbItemImpl.Execute`, passing a `NullProgressIndicator.INSTANCE` to `ExecutePsiTransaction`, but the same problem persists. It must be triggered some other way, but I can't find where. – Matthew Piziak Jul 11 '12 at 19:56
0

You better to get necessary data before starting transaction.

derigel
  • 3,218
  • 2
  • 19
  • 31