Bug 296646 Creating regular file under group gives wrong warning in wizard
Build id: I20091125-2200 1) Create a new group folder 2) Select the group, and do File > New > File 3) Type "a.txt" The wizard now says: 'a.' is an invalid name on this platform It looks like the error message is not being updated correctly as the user types.
bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/WizardNewFileCreationPage.java
if (resourceGroup.getAllowExistingResources()) {
				String problemMessage = NLS.bind(
						IDEWorkbenchMessages.ResourceGroup_nameExists,
						getFileName());
				IPath resourcePath = getContainerFullPath().append(
						getFileName());
				if (workspace.getRoot().getFolder(resourcePath).exists()) {
					setErrorMessage(problemMessage);
					valid = false;
				}
				if (workspace.getRoot().getFile(resourcePath).exists()) {
					setMessage(problemMessage, IMessageProvider.WARNING);
				}
			}
		}
		return valid;
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.jface.dialogs.DialogPage#setVisible(boolean)
	 */
	public void setVisible(boolean visible) {
		super.setVisible(visible);
		if (visible) {
			resourceGroup.setFocus();
		}
	}
}