Issue 5884 in pharo: FileBrowser/FileList 'Add new file' menu item in directory list does not work

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue 5884 in pharo: FileBrowser/FileList 'Add new file' menu item in directory list does not work

pharo
Status: Accepted
Owner: [hidden email]
Labels: Type-Bug

New issue 5884 by [hidden email]: FileBrowser/FileList 'Add new  
file' menu item in directory list does not work
http://code.google.com/p/pharo/issues/detail?id=5884

Open a FileBrowser in Pharo 2.0.
Select a directory in the directory list.
Select a file in the file list.
Open directory list pop up menu and select 'Add new file' item.
Bingo, you get a FileDoesNotExist exception...

It's the same bug as Issue 5881
FileList>>addNewFile
        self
                addNew: 'File'
                byEvaluating: [:newName | (reference / newName) ensureFile ]

But the reference inst var is pointing the the selected file, not the  
selected directory...
At worse, if I selected a directory, the new entry would be created at  
wrong level.
I guess i can open one bug entry per menu item.
I will stop here, but please, eating own dog food would be good for the  
system.


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 5884 in pharo: FileBrowser/FileList 'Add new file' menu item in directory list does not work

pharo

Comment #1 on issue 5884 by [hidden email]: FileBrowser/FileList 'Add  
new file' menu item in directory list does not work
http://code.google.com/p/pharo/issues/detail?id=5884

I agree and the problem is that nobody really use the fileList and friends.


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker