Index: /trunk/quest-core-usability/src/main/java/de/ugoe/cs/quest/usability/TextInputStatisticsRule.java
===================================================================
--- /trunk/quest-core-usability/src/main/java/de/ugoe/cs/quest/usability/TextInputStatisticsRule.java	(revision 698)
+++ /trunk/quest-core-usability/src/main/java/de/ugoe/cs/quest/usability/TextInputStatisticsRule.java	(revision 699)
@@ -7,9 +7,10 @@
 import java.util.Map;
 
+import de.ugoe.cs.quest.eventcore.gui.TextInput;
 import de.ugoe.cs.quest.eventcore.guimodel.ITextArea;
 import de.ugoe.cs.quest.eventcore.guimodel.ITextField;
+import de.ugoe.cs.quest.tasktrees.treeifc.IEventTask;
 import de.ugoe.cs.quest.tasktrees.treeifc.ITaskTree;
 import de.ugoe.cs.quest.tasktrees.treeifc.ITaskTreeNode;
-import de.ugoe.cs.quest.tasktrees.treeifc.ITextInputEventTask;
 
 /**
@@ -216,6 +217,8 @@
      */
     private void calculateStatistics(ITaskTreeNode node, TextInputStatistics statistics) {
-        if (node instanceof ITextInputEventTask) {
-            calculateStatistics((ITextInputEventTask) node, statistics);
+        if ((node instanceof IEventTask) &&
+            (((IEventTask) node).getEventType() instanceof TextInput))
+        {
+            calculateStatistics((IEventTask) node, statistics);
         }
         else {
@@ -237,6 +240,7 @@
      * @param statistics
      */
-    private void calculateStatistics(ITextInputEventTask node, TextInputStatistics statistics) {
-        String[] fragments = determineTextFragments(node.getEnteredText());
+    private void calculateStatistics(IEventTask node, TextInputStatistics statistics) {
+        String[] fragments =
+            determineTextFragments(((TextInput) node.getEventType()).getEnteredText());
 
         if (node.getEventTarget() instanceof ITextField) {
@@ -322,5 +326,5 @@
          * 
          */
-        public void addTextFieldInput(ITextInputEventTask node, String[] fragments) {
+        public void addTextFieldInput(IEventTask node, String[] fragments) {
             textFieldInputs.add(new Object[] { node, fragments });
         }
@@ -333,5 +337,5 @@
          * 
          */
-        public void addTextAreaInput(ITextInputEventTask node, String[] fragments) {
+        public void addTextAreaInput(IEventTask node, String[] fragments) {
             textAreaInputs.add(new Object[] { node, fragments });
         }
