IJ 2017 - AWT events are not allowed inside write action Follow
I have to say, I do not like that thing, because it complicates and breaks stuff...
I have bunch of EditorActions with EditorWriteActionHandler, sometimes with a dialog, and this forced me basically to one ugly boilerplate solution: using Editor#userData
Did I miss something? Or is this really the only/correct thing to do?
Please sign in to leave a comment.
Sorry for this breaking change, but it seems necessary if we ever want to perform write actions in a background thread (and we do).
Have you tried to replace EditorWriteActionHandler usage with EditorActionHandler and take write action yourself after the dialog is shown?
Thanks for the reply!
EditorWriteActionHandler contains some perhaps important logic I did not want to copypaste (it changes too much)... but now after I tried it, I found a better solution: