Save dirty editors in Eclipse -


we have developed eclipse rcp applicatoin. have requirement check dirty editors , prompt user save same before launch our dialog.

please let me know if have reusable dialog achieve same.

thanks in advance, harish

use org.eclipse.ui.ide.ide.savealleditors:

iresource [] resources = array of ifile, ifolder, iproject   boolean ok = ide.savealleditors(resources, confirm); 

from javadoc:

save dirty editors in workbench editor input child resource of 1 of iresource's provided. opens dialog prompt user if confirm true. return true if successful. return false if user has canceled command.


Comments

Popular posts from this blog

python - matpltolib navigation toolbar edit curves and parameters line color automatically changes issue -

node.js - Nodejs javascript implementation of PBEWithMD5AndTripleDES/CBC/PKCS5Padding -