Changeset 1051
- Timestamp:
- 02/01/13 11:56:14 (12 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-core-events-test/src/test/java/de/ugoe/cs/autoquest/eventcore/guimodel/MockGUIElement.java
r1010 r1051 2 2 3 3 public class MockGUIElement implements IGUIElement { 4 MockGUIElementSpec spec; 5 IGUIElement parent; 6 7 public MockGUIElement() { 8 // TODO Auto-generated constructor 9 } 10 11 public MockGUIElement(MockGUIElementSpec spec, IGUIElement parent){ 12 this.spec = spec; 13 this.parent = parent; 14 } 4 5 /** */ 6 private static final long serialVersionUID = 1L; 7 8 MockGUIElementSpec spec; 9 10 IGUIElement parent; 11 12 public MockGUIElement() { 13 // TODO Auto-generated constructor 14 } 15 16 public MockGUIElement(MockGUIElementSpec spec, IGUIElement parent){ 17 this.spec = spec; 18 this.parent = parent; 19 } 15 20 16 17 18 19 20 21 @Override 22 public String getPlatform() { 23 // TODO Auto-generated method stub 24 return null; 25 } 21 26 22 23 24 25 26 27 @Override 28 public String getStringIdentifier() { 29 // TODO Auto-generated method stub 30 return null; 31 } 27 32 28 29 30 31 33 @Override 34 public IGUIElementSpec getSpecification() { 35 return spec; 36 } 32 37 33 34 35 36 38 @Override 39 public IGUIElement getParent() { 40 return parent; 41 } 37 42 38 39 40 43 @Override 44 public void updateSpecification(IGUIElementSpec furtherSpec) { 45 // TODO Auto-generated method stub 41 46 42 47 } 43 48 44 45 46 49 @Override 50 public void addEqualGUIElement(IGUIElement equalElement) { 51 // TODO Auto-generated method stub 47 52 48 53 } 49 54 50 @Override 51 public boolean getUsageObserved() { 52 // TODO Auto-generated method stub 53 return false; 54 } 55 @Override 56 public boolean isUsed() { 57 // TODO Auto-generated method stub 58 return false; 59 } 60 61 @Override 62 public void markUsed() { 63 // TODO Auto-generated method stub 64 } 55 65 56 66 } -
trunk/autoquest-core-events/src/main/java/de/ugoe/cs/autoquest/eventcore/guimodel/AbstractDefaultGUIElement.java
r1010 r1051 115 115 * (non-Javadoc) 116 116 * 117 * @see de.ugoe.cs.autoquest.eventcore.guimodel.IGUIElement#isUsed() 118 */ 119 @Override 120 public boolean isUsed() { 121 return usageObserved; 122 } 123 124 /* 125 * (non-Javadoc) 126 * 127 * @see de.ugoe.cs.autoquest.eventcore.guimodel.IGUIElement#markUsed() 128 */ 129 @Override 130 public void markUsed() { 131 this.usageObserved = true; 132 } 133 134 /* 135 * (non-Javadoc) 136 * 117 137 * @see GUIElement#equals(GUIElement) 118 138 */ … … 137 157 } 138 158 139 @Override140 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 }152 153 159 /** 154 160 * <p> -
trunk/autoquest-core-events/src/main/java/de/ugoe/cs/autoquest/eventcore/guimodel/IGUIElement.java
r1010 r1051 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(); 36 28 37 29 /** 38 30 * <p> … … 52 44 */ 53 45 public IGUIElement getParent(); 46 47 /** 48 * <p> 49 * returns true, if a usage of this GUI element in a trace was observed 50 * </p> 51 * 52 * @return as described 53 */ 54 public boolean isUsed(); 55 56 /** 57 * <p> 58 * Marks a GUI element as used. 59 * </p> 60 */ 61 public void markUsed(); 54 62 55 63 /** -
trunk/autoquest-plugin-html/src/main/java/de/ugoe/cs/autoquest/plugin/html/NewHTMLLogParser.java
r1047 r1051 1 // Copyright 2012 Georg-August-Universität Göttingen, Germany 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 1 14 2 15 package de.ugoe.cs.autoquest.plugin.html; … … 222 235 } 223 236 237 /* (non-Javadoc) 238 * @see org.xml.sax.helpers.DefaultHandler#startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes) 239 */ 224 240 @Override 225 241 public void startElement(String uri, String localName, String qName, Attributes atts) … … 270 286 } 271 287 288 /* (non-Javadoc) 289 * @see org.xml.sax.helpers.DefaultHandler#endElement(java.lang.String, java.lang.String, java.lang.String) 290 */ 272 291 @Override 273 292 public void endElement(String uri, String localName, String qName) throws SAXException { … … 295 314 event.setTimestamp(currentEventTimestamp); 296 315 HTMLGUIElement currentEventTarget = (HTMLGUIElement) event.getTarget(); 297 currentEventTarget.mark AsUsed();316 currentEventTarget.markUsed(); 298 317 currentSequence.add(event); 299 318 -
trunk/autoquest-plugin-jfc/src/main/java/de/ugoe/cs/autoquest/plugin/jfc/JFCSimplifiedLogParser.java
r1049 r1051 405 405 for (Event event : unhandledEvents) { 406 406 event.setTarget(guiElement); 407 guiElement.mark AsUsed();407 guiElement.markUsed(); 408 408 currentSequence.add(event); 409 409 } … … 440 440 event.setTimestamp(currentEventTimestamp); 441 441 JFCGUIElement currentEventTarget = (JFCGUIElement) event.getTarget(); 442 currentEventTarget.mark AsUsed();442 currentEventTarget.markUsed(); 443 443 444 444 currentSequence.add(event); -
trunk/autoquest-plugin-mfc/src/main/java/de/ugoe/cs/autoquest/plugin/mfc/MFCLogParser.java
r1028 r1051 345 345 long hwnd = (Long) currentMessageParameters.get("window.hwnd"); 346 346 MFCGUIElement target = (MFCGUIElement) guiElementTree.find(hwnd); 347 target.mark AsUsed();347 target.markUsed(); 348 348 349 349 WindowsMessage message = new WindowsMessage
Note: See TracChangeset
for help on using the changeset viewer.