Hey guys,

I'm wondering about a thing in this [1] part of the IntelliJ Platform 
SDK DevGuide:
"Writing data is only allowed from the UI thread, and write operations 
always need to be wrapped in a write action with 
ApplicationManager.getApplication().runWriteAction()."

Does this mean only the UI thread is allowed to write without wrapping 
the commands in a  call 
ofApplicationManager.getApplication().runWriteAction()?
And does this mean when writing from another thread, you will need to 
wrap ApplicationManager.getApplication().runWriteAction() around your 
commands?

OR

Does this mean you have to wrap 
ApplicationManager.getApplication().runWriteAction() around the code you 
want to execute, and wrap another move to the UI thread 
(ApplicationManager.getApplication().invokeLater()) around it. Thus 
writing from a non-UI thread is never ever allowed?

Does anybody know?

Thanks,
Alex


[1] 
http://www.jetbrains.org/intellij/sdk/docs/basics/architectural_overview/general_threading_rules.html


------------------------------------------------------------------------------
_______________________________________________
DPP-Devel mailing list
DPP-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dpp-devel

Reply via email to