Files
openide/plugins/devkit/devkit-core/resources/inspectionDescriptions/MissingActionUpdateThread.html
Gregory.Shrago 2e7742737b drop deprecated ActionUpdateThread.OLD_EDT
GitOrigin-RevId: 2ef91367634caf5e3a35d3d1ad9a7b76d44fc5af
2024-08-11 23:29:30 +00:00

21 lines
873 B
HTML

<html>
<body>
Reports actions, action groups and other <code>ActionUpdateThreadAware</code> classes
that do not explicitly state their mode.
<p>
When an action or an action group defines its own <code>update()</code> method, IntelliJ Platform tries to mimic
the old synchronous way of calling <code>update()</code> and <code>getChildren()</code> methods in the UI thread and
supply it with all the data in <code>AnActionEvent.dataContext()</code>.
To do that, it caches all the possible data on a background thread beforehand, even if it is not needed.
</p>
<p>
Provide one of the two modes <code>ActionUpdateThread.EDT</code> or <code>ActionUpdateThread.BGT</code>
by overriding the <code>getActionUpdateThread()</code> method.
</p>
<p>
See the documentation of <code>ActionUpdateThread</code> for more information.
</p>
<!-- tooltip end -->
</body>
</html>