Changeset 1010
- Timestamp:
- 12/11/12 19:06:51 (12 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-core-events-test/src/test/java/de/ugoe/cs/autoquest/eventcore/guimodel/MockGUIElement.java
r1005 r1010 48 48 } 49 49 50 @Override 51 public boolean getUsageObserved() { 52 // TODO Auto-generated method stub 53 return false; 54 } 55 50 56 } -
trunk/autoquest-core-events/src/main/java/de/ugoe/cs/autoquest/eventcore/guimodel/AbstractDefaultGUIElement.java
r927 r1010 58 58 */ 59 59 private final IGUIElement parent; 60 61 /** 62 * <p> 63 * Boolean that indicates if a GUIElement was used during a session. 64 * </p> 65 */ 66 boolean usageObserved; 60 67 61 68 /** … … 72 79 this.specification = specification; 73 80 this.parent = parent; 81 this.usageObserved = false; 74 82 } 75 83 … … 128 136 return equalGUIElementManager.hashCode(this); 129 137 } 138 139 @Override 140 public boolean getUsageObserved() { 141 return usageObserved; 142 } 143 144 /** 145 * <p> 146 * Marks a GUI element as used. 147 * </p> 148 */ 149 public void markAsUsed(){ 150 this.usageObserved = true; 151 } 130 152 131 153 /** -
trunk/autoquest-core-events/src/main/java/de/ugoe/cs/autoquest/eventcore/guimodel/IGUIElement.java
r927 r1010 26 26 */ 27 27 public interface IGUIElement extends IEventTarget { 28 /** 29 * <p> 30 * Returns a boolean that indicates if GUIElement was used or not 31 * during a session 32 * </p> 33 * @return 34 */ 35 public boolean getUsageObserved(); 28 36 29 37 /** -
trunk/autoquest-plugin-jfc/src/main/java/de/ugoe/cs/autoquest/plugin/jfc/JFCSimplifiedLogParser.java
r1009 r1010 407 407 (currentGUIElement == null ? lastGUIElement : currentGUIElement)); 408 408 event.setTimestamp(currentEventTimestamp); 409 JFCGUIElement currentEventTarget = (JFCGUIElement) event.getTarget(); 410 currentEventTarget.markAsUsed(); 409 411 410 412 currentSequence.add(event); -
trunk/autoquest-plugin-mfc/src/main/java/de/ugoe/cs/autoquest/plugin/mfc/MFCLogParser.java
r1008 r1010 345 345 long hwnd = (Long) currentMessageParameters.get("window.hwnd"); 346 346 MFCGUIElement target = (MFCGUIElement) guiElementTree.find(hwnd); 347 target.markAsUsed(); 347 348 348 349 WindowsMessage message = new WindowsMessage
Note: See TracChangeset
for help on using the changeset viewer.