Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 2251

Summary: [Navigator] [UI] Canceling rename due to conflict changes selection (1GEAVIG)
Product: [Eclipse Project] Platform Reporter: Nick Edgar <n.a.edgar>
Component: UIAssignee: Andrew Irvine <airvine>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 Keywords: investigate
Version: 2.0   
Target Milestone: ---   
Hardware: All   
OS: Windows 98   
Whiteboard:

Description Nick Edgar CLA 2001-10-10 22:31:54 EDT
- new basic project A
- new folder A/B
- new file A/C.txt
- rename B to C.txt
- No to overwrite prompt
- it changes the selection to C.txt

Also, the selection is grayed even though the Navigator is still active.
Looks like the tree didn't regain focus properly, perhaps due to cancelling editor.

NOTES:

NE (5/25/01 5:14:21 PM)
	Also note that when the overwrite prompt comes up, the navigator shows the old name for the resource being renamed.
	That is, it shows B where the user just changed it to C.txt.

EJP (9/24/2001 11:26:38 AM)
	We do have the overwrite prompt now but we are still changing the selection
	with 'No' is pressed.

EJP (9/24/2001 11:40:46 AM)
	The problem is in ResourcenavigatorRenameAction>>#runWithNewPath.
	It changes the selection indepedent of the result of the super.runWithNewPath.

EJP (9/24/2001 11:54:54 AM)
	Have to add API so ResourcenavigatorRenameAction knows if the operation
	was completed
Comment 1 DJ Houghton CLA 2001-10-29 18:02:34 EST
PRODUCT VERSION:
110 JDK

Comment 2 Nick Edgar CLA 2002-01-25 22:26:50 EST
Not critical.
Comment 3 Randy Giffen CLA 2002-08-08 10:05:24 EDT
Reopen for investigation
Comment 4 Kevin Haaland CLA 2002-09-03 14:46:24 EDT
Pls try in latest. 
Comment 5 Andrew Irvine CLA 2002-09-10 15:24:41 EDT
In R2.1 focus is still lost, but item is no longer greyed out. There is still 
no API letting us know if the operation completed.
Comment 6 Kevin Haaland CLA 2003-02-07 15:18:47 EST
Closing