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

Bug 300679

Summary: Folder TextField in DirectoryDialog is not getting refreshed after renaming the directory
Product: [Eclipse Project] Platform Reporter: mamta <mamta.chaplot>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED NOT_ECLIPSE QA Contact:
Severity: normal    
Priority: P3 CC: eclipse.felipe, mamta.chaplot, remy.suen, Silenio_Quarti
Version: 4.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Folder Text is not getting refreshed. none

Description mamta CLA 2010-01-25 09:41:34 EST
Build Identifier: Build id: 20090920-1017

The DirectorDialog (org.eclipse.swt.widgets.DirectorDialog) has a "Folder Text Field" followed by Folder Label. 
When user choose any directory from the tree viewer, the that folder names appears in the foldet Text Field.
The DirectorDialog (org.eclipse.swt.widgets.DirectorDialog) has a "Folder Text Field" followed by Folder Label. 
When user choose any directory from the tree viewer, then choosen directory name appears in the foldet Text Field.

Bugs:


1)Refresh Problem
When user selects a folder then the folder name appears in the text field.
But if user renames it from the rename popup option then this text field is not refreshed with new value.

2) Behaviour Problem
Since this field is editable then its behaviour should be like renaming.
i.e. If user edit the folder name in this text field and press enter then treeviewer should get refreshed with new name.
and focus should in text field.

Reproducible: Always

Steps to Reproduce:
1.In Eclipse, Choose File->Switch WorkSpace-> Other
2.A Directory Dialog will appear asking the user to choose directory
3.Create a new directory with "Make New Folder" 
4.Folder Text Field gets filled with default name like "New Folder"
5.Rename the folder name 
6.After renaming, treeviewer gets refreshed with new name
  but Folder Text Field is still showing the previos value"New Folder"
Comment 1 mamta CLA 2010-01-27 00:19:04 EST
Created attachment 157372 [details]
Folder Text is not getting refreshed.

A new folder is created by using Make New Folder option and folder name is given
 which is reflected in treeviewer but not reflected in folder text field.
Comment 2 Felipe Heidrich CLA 2010-01-27 09:25:16 EST
This is a bug (behaviour) in Windows.
On a windows vista machine:
1. run windows explorer
2. select any file, 
3. in the menu bar (hit alt key for it to show), select Edit->Move To Folder...
4. in the directory dialog that opened you can reproduce the same problem.


closing as not eclipse. sorry.