AnAction and concurrency

hi,

are  there any concurrency issues to look after when creating an AnAction?  or is update / actionPerformed always executed on the same thread?

thx, -sciss-

1 comment
Comment actions Permalink

Hello Hanns,

update() and actionPerformed() are always executed on the event dispatch
thread. However, you must not store any state in non-static fields of your
AnAction class, because a single AnAction instance lives for the entire lifetime
of IntelliJ IDEA, and any state you store there almost always ends up being
a memory leak.

are  there any concurrency issues to look after when creating an
AnAction?  or is update / actionPerformed always executed on the same
thread?


--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Please sign in to leave a comment.