Community
Participate
Working Groups
This is split from bug 109979. On Unix platforms, removing the executable bit from a directory means that the directory contents can no longer be listed. In Eclipse, this is manifested by the children being deleted from the Eclipse workspace (Note: the children are NOT deleted from the file system). This can be very alarming for the user because it appears they have lost work. The property page that allows the executable bit to be changed should prompt for confirmation when it is changed on a directory (org.eclipse.ui.internal.ide.dialogs.ResourceInfoPage). Since the exact behaviour may vary across platforms, I suggest something like: "Removing the executable attribute from a folder may cause the contents of that folder to be unreadable, resulting in the appearance that those contents have been deleted. Are you sure you want to do this?"
John can you take this bug?
Sure; I will need to coordinate with Tod since he is currently working on this dialog.
Created attachment 31306 [details] Proposed fix
MVM, I wouldn't mind a UI person's opinion on the fix. I found the warning dialog when setting the executable bit too "in your face". It would have needed a "don't ask me again" preference, which also seemed a bit heavyweight. Instead I adopted the convention used in other preference pages to add "Note" label that displays the warning directly in the page (PreferencePage#createNoteLabel). Since this will only appear on platforms where the executable bit can be set, and only when showing the info page for a folder, this seems like an appropriate place for the warning.
Fix released.
I'll try this from HEAD or tomorrows build soon
Verified in I20051213-0010. Verified that the warning does not appear at all on Windows, and that it appears only for folders on Linux GTK.