Community
Participate
Working Groups
I20100425-2000 1. File > New > Other... > General > File 2. Select a folder (if one hasn't been preselected). 3. Enter a name for the file. 4. Delete your input. 5. An error message appears stating "Names cannot be empty.". Only one text field is blank, it seems the word "name" should not have to be pluralized.
The message is not from UI, but from Resources :LocationValidator.validateName()
Created attachment 183770 [details] Patch
FWIW the current message seems fine to me. It's the difference between a general statement (file names cannot be empty), versus a specific statement (the name of *this* file cannot be empty).
(In reply to comment #3) Right. This particular message is right. The problem is lack of consistency in messages among platform wizards. For instance: 1) File > New > Other > General > Project. If the name is entered and deleted we get "Project name must be specified" message 2) File > New > Other > General > Folder, we get "The 'folder' name is empty." message. 3) File > New > Other > General > File, we get "Names cannot be empty." error. If you try to rename a folder in Project Explorer using "Refactor > Rename" we get no message. However the rename in Package Explorer shows "This is an invalid name for a file or folder" error. I think we may find lots of such inconsistencies. We should try to address at least these in Platform.
Fixed.