Community
Participate
Working Groups
While closing Eclipse, instead of showing dirty resources in the project explorer individually, the "Save Resources" dialog shows "Project Explorer" as a single item in the list.
Could you please attach a screenshot? PNG or GIF is fine. PW
Created attachment 229871 [details] Screenshot explaining the bug
I'm not able to find an example for this situation in "vanilla" Eclipse. So I'm attaching a screenshot from the product I'm working on. It allows me to create UML models and modify them "inline" in the project explorer. In the attached screenshot, I've modified 2 UML models, and a Java class. The latter shows up separately, since its open in the editor. However, the models are not listed separately, as they used to be in earlier versions of Eclipse.
Maybe our save dialog is using the part title instead of something provided from the savable source. PW
Odd though that there is a star in the Project Explorer tab, almost like it thinks it's an editor. @Abhishek, can you make this happen at will and, if so, provide some steps that detail what we need to install and do?
(In reply to comment #5) > Odd though that there is a star in the Project Explorer tab, almost like it > thinks it's an editor. > > @Abhishek, can you make this happen at will and, if so, provide some steps > that detail what we need to install and do? Like I said in comment #3, I haven't been able to find a test case in an Eclipse installation that I have. The trick is to: 1. Dirty a resource in Project Explorer without opening it in an editor. or 2. Dirty the resource in an editor, then close the editor without saving the resource so that it stays in a dirty state. Try exiting Eclipse in this state, and it consistently identifies "Project Explorer" as the resource that needs to be saved. org.eclipse.ui.internal.WorkbenchPage.saveAllEditors(boolean, boolean) is passing on a list of dirty MParts, not resources, to the ISaveHandler, which prompts the user. So the Project Explorer, one of the dirty MParts, shows up as a single item. The general philosophy of the saveAllEditors() method seems to be to deal with MParts, and not bother with elements/resources contained within them.
Could be related to bug 406000.
(In reply to comment #7) > Could be related to bug 406000. Bug 406275 that is.
(In reply to comment #8) > (In reply to comment #7) > > Could be related to bug 406000. > > Bug 406275 that is. Bug 405562 could also be related to this.
This is fixed by the fix for bug 405562 PW
In 4.3.0.I20130516-2200 PW
With the test project attachment 231108 [details] PW
*** Bug 408485 has been marked as a duplicate of this bug. ***