Bug 169125 Make IDE#saveAllEditors work for logical models
Build ID: 200610251409 Steps To Reproduce: 1.In RSA, make changes to a model under ClearCase control 2.Without saving the model, invoke Team->Checkin 3.Checkin succeeds but the user's latest changes are not committed to the repository. More information: In the Logical Model API, there is currently no way for the repository to provider to query the state of the model and/or indicate to the model provider that it needs to be saved. The API needs to provide such a mechanism.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/IDE.java
}
		Platform.run(new SafeRunnable(IDEWorkbenchMessages.ErrorClosing) {
			public void run() {
				
				ArrayList dirtyEditors = new ArrayList();
				IWorkbenchWindow[] windows = PlatformUI.getWorkbench()
						.getWorkbenchWindows();
				for (int i = 0; i < windows.length; i++) {
					IWorkbenchWindow window = windows[i];
					IWorkbenchPage[] pages = window.getPages();
					for (int j = 0; j < pages.length; j++) {
						IWorkbenchPage page = pages[j];
						IEditorPart[] dirty = page.getDirtyEditors();
						for (int k = 0; k < dirty.length; k++) {
							IEditorPart part = dirty[k];
							IFile file = ResourceUtil.getFile(part
									.getEditorInput());
							if (file != null) {
								for (int l = 0; l < finalResources.length; l++) {
									IResource resource = finalResources[l];
									if (resource.getFullPath().isPrefixOf(
											file.getFullPath())) {
										dirtyEditors.add(part);
										break;
									}
								}
							}
						}
					}
				}