| Saving the Project in the background without closing open dialogs [message #754716]
||Fri, 04 November 2011 01:04
| Kivanc Muslu
Registered: November 2010
In one of my plug-ins, I save all open files in the background, without getting confirmation from the user with the following command:
public void run()
It works very well, however to do this, it closes all open dialogs to do this action. For example, let's say that the user invoked a content assist, while trying to decide what to choose from that dialog, my plug-in closes that dialog (since it saves the file). I guess this is due to the fact that I am trying to do the action with the UI thread, and to get a hold to the UI thread, it first closes its current dialog.
Is there a way to overcome this (i.e., delay the save until all active dialogs are closed or save the files in the workbench without forcing to close the active dialogs)?
Powered by FUDForum
. Page generated in 0.03432 seconds