Project: Eclipse_Platform_UI
Bug 30823 [Navigator] RenameResourceAction.invokeOperation should use validateEdit/setContents
Reported: 2003-02-03 12:12:26 | Status: resolved fixed

build 20030129 RenameResourceAction.invokeOperation deletes an existing target resource before moving the source. When the target resource is an existing file it should be renamed by calling setContents instead of deleting the conflicting resource and then moving the source. If it is read-only validateEdit should additionally be called before doing the setContents. If the source file is read-only as well, validateEdit needs to be called for the source and the destination together.

Files changed in fix:
bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/actions/RenameResourceAction.java