for (int i = 0; i < parts.length; i++) {
IWorkbenchPart workbenchPart = parts[i];
IWorkbenchSiteProgressService progressService = (IWorkbenchSiteProgressService) workbenchPart
.getSite().getAdapter(
IWorkbenchSiteProgressService.class);
progressService.showBusyForFamily(model);
}
model.disableUI(parts, blockUntilSaved);
// Add a listener for enabling the UI after the save job has
// finished, and for displaying an error dialog if
// necessary.