Changeset 784


Ignore:
Timestamp:
09/06/12 13:39:27 (12 years ago)
Author:
sherbold
Message:
  • code documentation
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/java-utils-test/src/test/java/de/ugoe/cs/util/console/defaultcommands/CMDlistCommandsTest.java

    r668 r784  
    1 // Module    : $RCSfile: CMDlistCommandsTest.java,v $ 
    2 // Version   : $Revision: 0.0 $  $Author: pharms $  $Date: 28.08.2012 $ 
    3 // Project   : quest-ui-core-test 
    4 // Creation  : 2012 by pharms 
    5 // Copyright : Patrick Harms, 2012 
     1 
    62package de.ugoe.cs.util.console.defaultcommands; 
    73 
     
    1915import de.ugoe.cs.util.console.listener.IOutputListener; 
    2016 
    21 /** 
    22  * <p> 
    23  * TODO comment 
    24  * </p> 
    25  *  
    26  * @version $Revision: $ $Date: 28.08.2012$ 
    27  * @author 2012, last modified by $Author: pharms$ 
    28  */ 
    2917public class CMDlistCommandsTest implements IOutputListener { 
    3018 
    31     /** */ 
    3219    private List<String> commands = new ArrayList<String>(); 
    3320 
    34     /** 
    35      *  
    36      */ 
    3721    @Before 
    3822    public void setUp() throws Exception { 
    3923        Console.getInstance().registerOutputListener(this); 
    4024    } 
    41          
    42     /** 
    43      * <p> 
    44      * TODO: comment 
    45      * </p> 
    46      * 
    47      */ 
     25 
    4826    @Test 
    4927    public void test() { 
     
    5129        CMDlistCommands command = new CMDlistCommands(); 
    5230        command.run(null); 
    53          
     31 
    5432        assertTrue(commands.size() > 0); 
    55          
     33 
    5634        for (String cmd : commands) { 
    5735            assertNotNull(cmd); 
     
    6139    } 
    6240 
    63     /* (non-Javadoc) 
    64      * @see de.ugoe.cs.util.console.listener.IOutputListener#outputMsg(java.lang.String) 
    65      */ 
    6641    @Override 
    6742    public void outputMsg(String newMessage) { 
  • trunk/quest-core-events/src/main/java/de/ugoe/cs/quest/eventcore/Event.java

    r766 r784  
    1919 
    2020    /** 
     21     * <p> 
    2122     * Id for object serialization. 
     23     * </p> 
    2224     */ 
    2325    private static final long serialVersionUID = 1L; 
  • trunk/quest-core-events/src/main/java/de/ugoe/cs/quest/eventcore/guimodel/GUIElementFactory.java

    r744 r784  
    1515/** 
    1616 * TODO comment 
    17  *  
    18  * TODO rename class to GUIElementFactory 
    1917 *  
    2018 * @version $Revision: $ $Date: 13.05.2012$ 
  • 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.