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

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -