Ignore:
Timestamp:
09/06/12 13:39:27 (12 years ago)
Author:
sherbold
Message:
  • code documentation
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/sequences/CMDdetectTextInputEvents.java

    r766 r784  
    99import de.ugoe.cs.quest.SequenceInstanceOf; 
    1010import de.ugoe.cs.quest.eventcore.Event; 
     11import de.ugoe.cs.quest.eventcore.gui.KeyPressed; 
     12import de.ugoe.cs.quest.eventcore.gui.KeyReleased; 
     13import de.ugoe.cs.quest.eventcore.gui.KeyTyped; 
     14import de.ugoe.cs.quest.eventcore.gui.TextInput; 
    1115import de.ugoe.cs.quest.eventcore.gui.TextInput.TextEquality; 
    1216import de.ugoe.cs.quest.eventcore.gui.TextInputDetector; 
     
    1721/** 
    1822 * <p> 
    19  * TODO comment 
     23 * Command that converts {@link KeyPressed}, {@link KeyReleased}, and {@link KeyTyped} sequences 
     24 * into {@link TextInput} events if possible. 
    2025 * </p> 
    2126 *  
     
    5459                newSequencesName = sequencesName; 
    5560            } 
    56             if( parameters.size() > 2) { 
     61            if (parameters.size() > 2) { 
    5762                textEqualityTypeString = (String) parameters.get(2); 
    5863            } 
     
    7277            return; 
    7378        } 
    74          
     79 
    7580        TextEquality textEqualityType = null; 
    7681        try { 
     
    7883        } 
    7984        catch (IllegalArgumentException e) { 
    80             Console.printerrln("Invalid mode. Only LEXICAL, SYNTACTICAL, and SEMANTICAL are allowed values!"); 
     85            Console 
     86                .printerrln("Invalid mode. Only LEXICAL, SYNTACTICAL, and SEMANTICAL are allowed values!"); 
    8187            return; 
    8288        } 
     
    8591 
    8692        Collection<List<Event>> newSequences = new LinkedList<List<Event>>(); 
    87         
     93 
    8894        for (List<Event> sequence : sequences) { 
    8995            newSequences.add(new TextInputDetector(textEqualityType).detectTextInputs(sequence)); 
     
    9399            CommandHelpers.dataOverwritten(newSequencesName); 
    94100        } 
    95          
     101 
    96102    } 
    97103 
Note: See TracChangeset for help on using the changeset viewer.