Ignore:
Timestamp:
02/13/15 10:28:34 (10 years ago)
Author:
pharms
Message:
  • added support for mouse clicks
  • fixed bug with undiscarded event task instances
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-test-utils/src/main/java/de/ugoe/cs/autoquest/tasktrees/TaskTreeDecoder.java

    r1333 r1875  
    2929import de.ugoe.cs.autoquest.eventcore.IEventType; 
    3030import de.ugoe.cs.autoquest.eventcore.StringEventType; 
     31import de.ugoe.cs.autoquest.eventcore.gui.MouseButtonInteraction; 
     32import de.ugoe.cs.autoquest.eventcore.gui.MouseClick; 
    3133import de.ugoe.cs.autoquest.eventcore.gui.Scroll; 
    3234import de.ugoe.cs.autoquest.eventcore.gui.TextInput; 
     
    368370            return new TextInput(additionalInfo, new ArrayList<Event>()); 
    369371        } 
     372        else if ("MouseClick".equals(type)) { 
     373            return new MouseClick(MouseButtonInteraction.Button.LEFT, 5, 6); 
     374        } 
    370375        else if ("Scroll".equals(type)) { 
    371376            int x = 0; 
     
    478483                (((IEventTaskInstance) instance).getEventTask(), 
    479484                 new Event(origEvent.getType(), replacements.get(origEvent.getTarget()))); 
     485             
     486            taskBuilder.discardTaskInstance(instance); 
    480487        } 
    481488         
Note: See TracChangeset for help on using the changeset viewer.