- Timestamp:
- 11/15/12 11:33:45 (12 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-core-events/src/main/java/de/ugoe/cs/autoquest/eventcore/guimodel/GUIElementFactory.java
r984 r990 84 84 Properties mappings = getMappingsFromConfiguration(); 85 85 IGUIElement guiElement = null; 86 String[] classHierarchy = specification.getClassHierarchy();86 String[] typeHierarchy = specification.getTypeHierarchy(); 87 87 int i = 0; 88 88 String className = null; 89 while (className == null && i < classHierarchy.length){90 className = mappings.getProperty( classHierarchy[i]);89 while (className == null && i < typeHierarchy.length){ 90 className = mappings.getProperty(typeHierarchy[i]); 91 91 i++; 92 92 } -
trunk/autoquest-core-events/src/main/java/de/ugoe/cs/autoquest/eventcore/guimodel/IGUIElementSpec.java
r966 r990 49 49 * @return 50 50 */ 51 public String[] get ClassHierarchy();51 public String[] getTypeHierarchy(); 52 52 53 53 /** -
trunk/autoquest-plugin-html/src/main/java/de/ugoe/cs/autoquest/plugin/html/guimodel/HTMLGUIElementSpec.java
r966 r990 71 71 72 72 @Override 73 public String[] getClassHierarchy() { 74 // TODO Auto-generated method stub 75 System.out.println("TODO: implement IGUIElementSpec.getClassHierarchy "); 76 return null; 73 public String[] getTypeHierarchy() { 74 return new String[] { type }; 77 75 } 78 76 -
trunk/autoquest-plugin-jfc/src/main/java/de/ugoe/cs/autoquest/plugin/jfc/JFCSimplifiedLogParser.java
r984 r990 136 136 * </p> 137 137 */ 138 private List<String> current ClassHierarchy;138 private List<String> currentTypeHierarchy; 139 139 140 140 /** … … 356 356 } 357 357 else if (qName.equals("ancestor")){ 358 current ClassHierarchy.add(atts.getValue("name"));358 currentTypeHierarchy.add(atts.getValue("name")); 359 359 } 360 360 else if (qName.equals("ancestors")){ 361 current ClassHierarchy = new LinkedList<String>();361 currentTypeHierarchy = new LinkedList<String>(); 362 362 } 363 363 } … … 378 378 } 379 379 else if (qName.equals("ancestors")){ 380 currentGuiElementSpec.set ClassHierarchy(currentClassHierarchy);380 currentGuiElementSpec.setTypeHierarchy(currentTypeHierarchy); 381 381 } 382 382 else if (qName.equals("component") && currentComponentHash != null) { … … 386 386 currentComponentHash = null; 387 387 currentParentHash = null; 388 current ClassHierarchy = null;388 currentTypeHierarchy = null; 389 389 } 390 390 else if (currentEventId != null) { -
trunk/autoquest-plugin-jfc/src/main/java/de/ugoe/cs/autoquest/plugin/jfc/guimodel/JFCGUIElementSpec.java
r984 r990 91 91 /** 92 92 * <p> 93 * Classhierarchy of the class itself94 * </p> 95 */ 96 private List<String> classHierarchy = null;93 * Type hierarchy of the class itself 94 * </p> 95 */ 96 private List<String> typeHierarchy = null; 97 97 98 98 /* … … 374 374 /** 375 375 * <p> 376 * Sets the classhierarchy of the specified GUI element.377 * @param classHierarchy378 * </p> 379 */ 380 public void set ClassHierarchy(List<String> classHierarchy){381 this. classHierarchy = classHierarchy;376 * Sets the type hierarchy of the specified GUI element. 377 * @param typeHierarchy 378 * </p> 379 */ 380 public void setTypeHierarchy(List<String> typeHierarchy){ 381 this.typeHierarchy = typeHierarchy; 382 382 } 383 383 … … 421 421 422 422 @Override 423 public String[] get ClassHierarchy() {424 if ( classHierarchy == null){423 public String[] getTypeHierarchy() { 424 if (typeHierarchy == null){ 425 425 return new String[]{(getType())}; 426 426 } 427 427 else 428 return classHierarchy.toArray(new String[classHierarchy.size()]);428 return typeHierarchy.toArray(new String[typeHierarchy.size()]); 429 429 } 430 430 -
trunk/autoquest-plugin-mfc/src/main/java/de/ugoe/cs/autoquest/plugin/mfc/guimodel/MFCGUIElementSpec.java
r966 r990 415 415 416 416 @Override 417 public String[] getClassHierarchy() { 418 // TODO Auto-generated method stub 419 System.out.println("TODO: implement IGUIElementSpec.getClassHierarchy "); 420 return null; 417 public String[] getTypeHierarchy() { 418 return new String[] { type }; 421 419 } 422 420
Note: See TracChangeset
for help on using the changeset viewer.