Changeset 852
- Timestamp:
- 10/01/12 13:08:31 (12 years ago)
- Location:
- trunk
- Files:
-
- 1 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/quest-core-events-test/src/test/java/de/ugoe/cs/quest/eventcore/gui/KeyInteractionCorrectorTest.java
r783 r852 13 13 14 14 import de.ugoe.cs.quest.eventcore.Event; 15 import de.ugoe.cs.quest.eventcore.gui.KeyInteraction Sorter.CleanupMode;15 import de.ugoe.cs.quest.eventcore.gui.KeyInteractionCorrector.CleanupMode; 16 16 import de.ugoe.cs.quest.eventcore.gui.MouseButtonInteraction.Button; 17 17 import de.ugoe.cs.quest.eventcore.guimodel.IGUIElement; … … 23 23 * @author Patrick Harms, Steffen Herbold 24 24 */ 25 public class KeyInteraction SorterTest {25 public class KeyInteractionCorrectorTest { 26 26 27 27 @Test … … 30 30 List<Event> expected = new LinkedList<Event>(); 31 31 32 KeyInteraction Sorter sorter = new KeyInteractionSorter();32 KeyInteractionCorrector sorter = new KeyInteractionCorrector(); 33 33 34 34 IGUIElement guiElement = mock(IGUIElement.class); … … 53 53 List<Event> expected = new LinkedList<Event>(); 54 54 55 KeyInteraction Sorter sorter = new KeyInteractionSorter();55 KeyInteractionCorrector sorter = new KeyInteractionCorrector(); 56 56 57 57 IGUIElement guiElement = mock(IGUIElement.class); … … 76 76 List<Event> expected = new LinkedList<Event>(); 77 77 78 KeyInteraction Sorter sorter = new KeyInteractionSorter();78 KeyInteractionCorrector sorter = new KeyInteractionCorrector(); 79 79 80 80 IGUIElement guiElement = mock(IGUIElement.class); … … 103 103 List<Event> expected = new LinkedList<Event>(); 104 104 105 KeyInteraction Sorter sorter = new KeyInteractionSorter();105 KeyInteractionCorrector sorter = new KeyInteractionCorrector(); 106 106 107 107 IGUIElement guiElement = mock(IGUIElement.class); … … 130 130 List<Event> expected = new LinkedList<Event>(); 131 131 132 KeyInteraction Sorter sorter = new KeyInteractionSorter();132 KeyInteractionCorrector sorter = new KeyInteractionCorrector(); 133 133 134 134 IGUIElement guiElement = mock(IGUIElement.class); … … 160 160 List<Event> expected = new LinkedList<Event>(); 161 161 162 KeyInteraction Sorter sorter = new KeyInteractionSorter();162 KeyInteractionCorrector sorter = new KeyInteractionCorrector(); 163 163 164 164 IGUIElement guiElement = mock(IGUIElement.class); … … 195 195 List<Event> expected = new LinkedList<Event>(); 196 196 197 KeyInteraction Sorter sorter = new KeyInteractionSorter();197 KeyInteractionCorrector sorter = new KeyInteractionCorrector(); 198 198 199 199 IGUIElement guiElement = mock(IGUIElement.class); … … 230 230 List<Event> expected = new LinkedList<Event>(); 231 231 232 KeyInteraction Sorter sorter = new KeyInteractionSorter();232 KeyInteractionCorrector sorter = new KeyInteractionCorrector(); 233 233 234 234 IGUIElement guiElement = mock(IGUIElement.class); … … 269 269 List<Event> expected = new LinkedList<Event>(); 270 270 271 KeyInteraction Sorter sorter = new KeyInteractionSorter();271 KeyInteractionCorrector sorter = new KeyInteractionCorrector(); 272 272 273 273 IGUIElement guiElement = mock(IGUIElement.class); … … 305 305 List<Event> expected = new LinkedList<Event>(); 306 306 307 KeyInteraction Sorter sorter = new KeyInteractionSorter();307 KeyInteractionCorrector sorter = new KeyInteractionCorrector(); 308 308 309 309 IGUIElement guiElement = mock(IGUIElement.class); … … 337 337 List<Event> expected = new LinkedList<Event>(); 338 338 339 KeyInteraction Sorter sorter = new KeyInteractionSorter();339 KeyInteractionCorrector sorter = new KeyInteractionCorrector(); 340 340 341 341 IGUIElement guiElement = mock(IGUIElement.class); … … 361 361 List<Event> expected = new LinkedList<Event>(); 362 362 363 KeyInteraction Sorter sorter = new KeyInteractionSorter();363 KeyInteractionCorrector sorter = new KeyInteractionCorrector(); 364 364 365 365 IGUIElement guiElement = mock(IGUIElement.class); … … 387 387 List<Event> expected = new LinkedList<Event>(); 388 388 389 KeyInteraction Sorter sorter = new KeyInteractionSorter(CleanupMode.REMOVAL);389 KeyInteractionCorrector sorter = new KeyInteractionCorrector(CleanupMode.REMOVAL); 390 390 391 391 IGUIElement guiElement = mock(IGUIElement.class); … … 408 408 List<Event> expected = new LinkedList<Event>(); 409 409 410 KeyInteraction Sorter sorter = new KeyInteractionSorter(CleanupMode.ADDITION);410 KeyInteractionCorrector sorter = new KeyInteractionCorrector(CleanupMode.ADDITION); 411 411 412 412 IGUIElement guiElement = mock(IGUIElement.class); -
trunk/quest-core-events/src/main/java/de/ugoe/cs/quest/eventcore/gui/KeyInteractionCorrector.java
r795 r852 40 40 * @author Steffen Herbold 41 41 */ 42 public class KeyInteraction Sorter {42 public class KeyInteractionCorrector { 43 43 44 44 /** … … 75 75 /** 76 76 * <p> 77 * Constructor. Creates a new {@link KeyInteraction Sorter} with {@link #mode}=77 * Constructor. Creates a new {@link KeyInteractionCorrector} with {@link #mode}= 78 78 * {@link CleanupMode#ADDITION}. 79 79 * </p> 80 80 */ 81 public KeyInteraction Sorter() {81 public KeyInteractionCorrector() { 82 82 this(CleanupMode.ADDITION); 83 83 } … … 85 85 /** 86 86 * <p> 87 * Constructor. Creates a new {@link KeyInteraction Sorter}.87 * Constructor. Creates a new {@link KeyInteractionCorrector}. 88 88 * </p> 89 89 * … … 91 91 * {@link #mode} of the instance 92 92 */ 93 public KeyInteraction Sorter(CleanupMode mode) {93 public KeyInteractionCorrector(CleanupMode mode) { 94 94 this.mode = mode; 95 95 } … … 98 98 * <p> 99 99 * Sorts and cleans up key interactions according to the class specification (@see 100 * {@link KeyInteraction Sorter} class comment).100 * {@link KeyInteractionCorrector} class comment). 101 101 * </p> 102 102 * <p> -
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/sequences/CMDsortKeyInteractions.java
r803 r852 10 10 import de.ugoe.cs.quest.SequenceInstanceOf; 11 11 import de.ugoe.cs.quest.eventcore.Event; 12 import de.ugoe.cs.quest.eventcore.gui.KeyInteraction Sorter;13 import de.ugoe.cs.quest.eventcore.gui.KeyInteraction Sorter.CleanupMode;12 import de.ugoe.cs.quest.eventcore.gui.KeyInteractionCorrector; 13 import de.ugoe.cs.quest.eventcore.gui.KeyInteractionCorrector.CleanupMode; 14 14 import de.ugoe.cs.util.console.Command; 15 15 import de.ugoe.cs.util.console.Console; … … 110 110 for (List<Event> sequence : sequences) { 111 111 Console.traceln(Level.INFO, "Processing sequence " + i++); 112 newSequences.add(new KeyInteraction Sorter(mode).sortKeyInteractions(sequence));112 newSequences.add(new KeyInteractionCorrector(mode).sortKeyInteractions(sequence)); 113 113 } 114 114
Note: See TracChangeset
for help on using the changeset viewer.