- Timestamp:
- 09/06/12 13:39:27 (12 years ago)
- 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 6 2 package de.ugoe.cs.util.console.defaultcommands; 7 3 … … 19 15 import de.ugoe.cs.util.console.listener.IOutputListener; 20 16 21 /**22 * <p>23 * TODO comment24 * </p>25 *26 * @version $Revision: $ $Date: 28.08.2012$27 * @author 2012, last modified by $Author: pharms$28 */29 17 public class CMDlistCommandsTest implements IOutputListener { 30 18 31 /** */32 19 private List<String> commands = new ArrayList<String>(); 33 20 34 /**35 *36 */37 21 @Before 38 22 public void setUp() throws Exception { 39 23 Console.getInstance().registerOutputListener(this); 40 24 } 41 42 /** 43 * <p> 44 * TODO: comment 45 * </p> 46 * 47 */ 25 48 26 @Test 49 27 public void test() { … … 51 29 CMDlistCommands command = new CMDlistCommands(); 52 30 command.run(null); 53 31 54 32 assertTrue(commands.size() > 0); 55 33 56 34 for (String cmd : commands) { 57 35 assertNotNull(cmd); … … 61 39 } 62 40 63 /* (non-Javadoc)64 * @see de.ugoe.cs.util.console.listener.IOutputListener#outputMsg(java.lang.String)65 */66 41 @Override 67 42 public void outputMsg(String newMessage) { -
trunk/quest-core-events/src/main/java/de/ugoe/cs/quest/eventcore/Event.java
r766 r784 19 19 20 20 /** 21 * <p> 21 22 * Id for object serialization. 23 * </p> 22 24 */ 23 25 private static final long serialVersionUID = 1L; -
trunk/quest-core-events/src/main/java/de/ugoe/cs/quest/eventcore/guimodel/GUIElementFactory.java
r744 r784 15 15 /** 16 16 * TODO comment 17 *18 * TODO rename class to GUIElementFactory19 17 * 20 18 * @version $Revision: $ $Date: 13.05.2012$ -
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/sequences/CMDdetectTextInputEvents.java
r766 r784 9 9 import de.ugoe.cs.quest.SequenceInstanceOf; 10 10 import de.ugoe.cs.quest.eventcore.Event; 11 import de.ugoe.cs.quest.eventcore.gui.KeyPressed; 12 import de.ugoe.cs.quest.eventcore.gui.KeyReleased; 13 import de.ugoe.cs.quest.eventcore.gui.KeyTyped; 14 import de.ugoe.cs.quest.eventcore.gui.TextInput; 11 15 import de.ugoe.cs.quest.eventcore.gui.TextInput.TextEquality; 12 16 import de.ugoe.cs.quest.eventcore.gui.TextInputDetector; … … 17 21 /** 18 22 * <p> 19 * TODO comment 23 * Command that converts {@link KeyPressed}, {@link KeyReleased}, and {@link KeyTyped} sequences 24 * into {@link TextInput} events if possible. 20 25 * </p> 21 26 * … … 54 59 newSequencesName = sequencesName; 55 60 } 56 if (parameters.size() > 2) {61 if (parameters.size() > 2) { 57 62 textEqualityTypeString = (String) parameters.get(2); 58 63 } … … 72 77 return; 73 78 } 74 79 75 80 TextEquality textEqualityType = null; 76 81 try { … … 78 83 } 79 84 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!"); 81 87 return; 82 88 } … … 85 91 86 92 Collection<List<Event>> newSequences = new LinkedList<List<Event>>(); 87 93 88 94 for (List<Event> sequence : sequences) { 89 95 newSequences.add(new TextInputDetector(textEqualityType).detectTextInputs(sequence)); … … 93 99 CommandHelpers.dataOverwritten(newSequencesName); 94 100 } 95 101 96 102 } 97 103
Note: See TracChangeset
for help on using the changeset viewer.