Changeset 644 for trunk/quest-plugin-mfc/src
- Timestamp:
- 08/27/12 17:51:27 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/quest-plugin-mfc/src/main/java/de/ugoe/cs/quest/plugin/mfc/EventGenerator.java
r639 r644 23 23 import de.ugoe.cs.quest.eventcore.IEventType; 24 24 import de.ugoe.cs.quest.plugin.mfc.EventGenerationRule.Term; 25 import de.ugoe.cs.quest.plugin.mfc.eventcore.MFCEvent;26 25 import de.ugoe.cs.quest.plugin.mfc.eventcore.MFCEventTypeFactory; 27 26 import de.ugoe.cs.quest.plugin.mfc.eventcore.ReplayWindowsMessage; … … 69 68 * </p> 70 69 */ 71 private MFCEvent currentEvent;70 private Event currentEvent; 72 71 73 72 /** … … 167 166 (currentRuleName, resolveParameters(currentRule.getEventParameters())); 168 167 169 currentEvent = new MFCEvent(currentType, currentTarget, windowTree.getGUIModel());168 currentEvent = new Event(currentType, currentTarget); 170 169 171 170 for (EventGenerationRule.ReplayMessageSpec replayMessageSpec : … … 497 496 498 497 if ((messageSpec.getLparamHiWord() != null) || 499 498 (messageSpec.getLparamLoWord() != null)) 500 499 { 501 500 generatedMessage.setLPARAM … … 513 512 514 513 if ((messageSpec.getWparamHiWord() != null) || 515 514 (messageSpec.getWparamLoWord() != null)) 516 515 { 517 516 generatedMessage.setWPARAM … … 732 731 } 733 732 else { // const value 734 int paramValue = getTermValue(messageSpec.getWparam(), int.class);733 long paramValue = getTermValue(messageSpec.getWparam(), Long.class); 735 734 while (seqIterator.hasNext()) { 736 735 seqIterator.next().setWPARAM(paramValue); … … 906 905 int index = target.lastIndexOf("<"); 907 906 if (index == 0) { 908 Console.traceln(Level.WARNING, "Trying to adress parent of top-level window! Replay" +909 "probably invalid!");907 Console.traceln(Level.WARNING, "Trying to adress parent of top-level " + 908 "window! Replay probably invalid!"); 910 909 } 911 910 value = getValueAsType(target.substring(0, index), expectedType); … … 1019 1018 return (T) (Short) Short.parseShort((String) value); 1020 1019 } 1020 else if (Long.class.equals(expectedType)) { 1021 return (T) (Long) Long.parseLong((String) value); 1022 } 1021 1023 } 1022 1024 catch (Exception e) {
Note: See TracChangeset
for help on using the changeset viewer.