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!"
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.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"