Changeset 1031
- Timestamp:
- 01/13/13 17:01:05 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
autoquest-core-usability-evaluation/src/main/java/de/ugoe/cs/autoquest/usability/util/TextInputUtil.java
r1030 r1031 21 21 for(ITaskTreeNode nodeWithTextInput : nodesWithTextInputEvents) { 22 22 TextInput textInput = (TextInput) ((IEventTask) nodeWithTextInput).getEventType(); 23 allTextInputs.add(splitTextIntoWordsAn sSigns(textInput.getEnteredText()));23 allTextInputs.add(splitTextIntoWordsAndSigns(textInput.getEnteredText())); 24 24 } 25 25 return HashMultiset.create(Iterables.concat(allTextInputs)); 26 26 } 27 27 28 public static Iterable<String> splitTextIntoWordsAn sSigns(String enteredText) {28 public static Iterable<String> splitTextIntoWordsAndSigns(String enteredText) { 29 29 CharMatcher onlyWords = CharMatcher.WHITESPACE.or(CharMatcher.forPredicate(characterIsJavaIdentifierPartPredicate())); 30 30 CharMatcher onlySigns = CharMatcher.WHITESPACE.or(CharMatcher.forPredicate(characterIsJavaIdentifierPartPredicate()).negate());
Note: See TracChangeset
for help on using the changeset viewer.