final Map<Object, Object> saveOptions = new HashMap<Object, Object>();
saveOptions.put(Resource.OPTION_SAVE_ONLY_IF_CHANGED, Resource.OPTION_SAVE_ONLY_IF_CHANGED_MEMORY_BUFFER);
// Do the work within an operation because this is a long running activity that modifies the workbench.
//
IRunnableWithProgress operation =
new IRunnableWithProgress() {
// This is the method that gets invoked when the operation runs.
//
public void run(IProgressMonitor monitor) {
// Save the resources to the file system.
//