commit | cb36732d03e00145a97dd276f3d60d28649da066 | [log] [tgz] |
---|---|---|
author | nwestbury <nwestbury> | Sun Oct 04 03:01:04 2009 +0000 |
committer | nwestbury <nwestbury> | Sun Oct 04 03:01:04 2009 +0000 |
tree | 1045ca6e9967aaa7d0b0be78aacaff27a1a35475 | |
parent | 722dba2e0924ee6e507b8d7a347a0476180dca78 [diff] |
change error message when no key is entered
diff --git a/org.eclipse.babel.editor/src/org/eclipse/babel/editor/refactoring/RenameKeyProcessor.java b/org.eclipse.babel.editor/src/org/eclipse/babel/editor/refactoring/RenameKeyProcessor.java index 9c21f6d..0b0e3e2 100644 --- a/org.eclipse.babel.editor/src/org/eclipse/babel/editor/refactoring/RenameKeyProcessor.java +++ b/org.eclipse.babel.editor/src/org/eclipse/babel/editor/refactoring/RenameKeyProcessor.java
@@ -136,6 +136,9 @@ public RefactoringStatus validateNewElementName(String newName) { Assert.isNotNull(newName); + if (newName.length() == 0) { + return RefactoringStatus.createFatalErrorStatus("New name for key must be entered"); + } if (newName.startsWith(".")) { return RefactoringStatus.createFatalErrorStatus("Key cannot start with a '.'"); }