IntentionAction: how to start write action
Hi
IntentionAction.startInWriteAction has the javadoc below:
/**
Indicate whether this action should be invoked inside write action.
Should return false if e.g. modal dialog is shown inside the action.
If false is returned the action itself is responsible for starting write action
when needed
*/
Could someone give an example of how to start such a write action? I couldn't find any in the available sources.
That would be great! Thanks in advance.
--Etienne
请先登录再写评论。
ApplicationManager.getApplication().runWriteAction(...)
etienne wrote:
--
Martin Fuhrer
Fuhrer Engineering AG
http://www.fuhrer.com
I see, it's that easy. Thanks a lot, Martin.