diff options
Diffstat (limited to 'rba.tool.editor.ui/src/rba/tool/editor/ui/util/CharacterUtil.xtend')
-rw-r--r-- | rba.tool.editor.ui/src/rba/tool/editor/ui/util/CharacterUtil.xtend | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/rba.tool.editor.ui/src/rba/tool/editor/ui/util/CharacterUtil.xtend b/rba.tool.editor.ui/src/rba/tool/editor/ui/util/CharacterUtil.xtend new file mode 100644 index 0000000..28cbe08 --- /dev/null +++ b/rba.tool.editor.ui/src/rba/tool/editor/ui/util/CharacterUtil.xtend @@ -0,0 +1,10 @@ +package rba.tool.editor.ui.util + +import org.eclipse.xtext.Keyword + +class CharacterUtil { + + def public static boolean isKeywordWorthyToPropose(Keyword keyword) { + return keyword.getValue().length() > 1 && Character.isLetter(keyword.getValue().charAt(0)); + } +} |