Community
Participate
Working Groups
There is API on workbench IDE (IDE.saveAllEditors(selectedResources, confirm)) for prompting the user to save dirty editors before performing an operation. This API does not pick up Compare Editors that contain local files that are dirty. To reproduce this, perform the follosing steps: 1) Load a project from CVS and dirty a file. 2) Synchronize the project the file is in so that the file appears as an outgoing change in the sync view. 3) Select the dirty file and another file in the navigator and perform a Compare With Each Other. 4) Dirty the file in the compare editor but don't save. 5) Perform a Commit on the file in the sync view and notice that you are not prompted to save. If the file was open in a text editor (or java editor, etc) and dirty, the user would be prompted.
fixed in ResourceCompareInput. Please note: - if you are a subclass of CompareInput, you'll have to implement the getAdapter(IFile) method yourself (it is used by IDE.saveAllEditors). - getAdapter can only return a single IFile, so it does not support editors that work on more than one IFile.
*** Bug 66295 has been marked as a duplicate of this bug. ***
verified in I200406110010