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

2 comments

ApplicationManager.getApplication().runWriteAction(...)

etienne wrote:

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


--
Martin Fuhrer
Fuhrer Engineering AG
http://www.fuhrer.com

0

I see, it's that easy. Thanks a lot, Martin.

0

Please sign in to leave a comment.