Ignore:
Timestamp:
12/11/12 17:24:30 (12 years ago)
Author:
fglaser
Message:
  • autoquest-plugin-jfc subproject was adapted to new naming conventions (GUI element instead of component) were appropriate
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-plugin-jfc/src/main/java/de/ugoe/cs/autoquest/plugin/jfc/JFCSimplifiedLogParser.java

    r1004 r1009  
    4242import de.ugoe.cs.autoquest.keyboardmaps.VirtualKey; 
    4343import de.ugoe.cs.autoquest.plugin.jfc.eventcore.JFCEventId; 
    44 import de.ugoe.cs.autoquest.plugin.jfc.guimodel.JFCComponentTree; 
    4544import de.ugoe.cs.autoquest.plugin.jfc.guimodel.JFCGUIElement; 
    4645import de.ugoe.cs.autoquest.plugin.jfc.guimodel.JFCGUIElementSpec; 
     
    7675     *  
    7776     * <p> 
    78      * Internal handle to the hashcode of the component, that is currently parsed. 
    79      * </p> 
    80      */ 
    81     private Long currentComponentHash; 
     77     * Internal handle to the hashcode of the GUI element, that is currently parsed. 
     78     * </p> 
     79     */ 
     80    private Long currentGUIElementHash; 
    8281     
    8382    /** 
    8483     *  
    8584     * <p> 
    86      * Internal handle to the hashcode of the parent of the component, that is currently parsed.  
     85     * Internal handle to the hashcode of the parent of the GUI element, that is currently parsed.  
    8786     * </p> 
    8887     */ 
     
    118117    /** 
    119118     * <p> 
    120      * internal handle to the parameters currently parsed for a component 
     119     * internal handle to the specification currently parsed for a GUI element 
    121120     * </p> 
    122121     */ 
     
    125124    /** 
    126125     * <p> 
    127      * internal handle to the parsed gui structure, stored in a JFCComponentTree 
     126     * internal handle to the parsed GUI structure, stored in a GUIElementTree 
    128127     * </p> 
    129128     */ 
     
    132131    /** 
    133132     * <p> 
    134      * internal handle to the component of the previous event to be potentially reused for the 
     133     * internal handle to the GUI element of the previous event to be potentially reused for the 
    135134     * current 
    136135     * </p> 
     
    288287    /** 
    289288     * <p> 
    290      * Returns the gui model that is obtained from parsing log files. 
     289     * Returns the GUI model that is obtained from parsing log files. 
    291290     * </p> 
    292291     *  
     
    319318        } 
    320319        else if (qName.equals("component")) { 
    321                 currentComponentHash = Long.parseLong(atts.getValue("hash"), 16); 
     320                currentGUIElementHash = Long.parseLong(atts.getValue("hash"), 16); 
    322321                currentGuiElementSpec = new JFCGUIElementSpec(); 
    323                 currentGuiElementSpec.setElementHash((int) currentComponentHash.longValue()); 
     322                currentGuiElementSpec.setElementHash((int) currentGUIElementHash.longValue()); 
    324323        } 
    325324        else if (qName.equals("event")) { 
     
    347346                        } 
    348347                currentEventParameters.put(atts.getValue("name"), atts.getValue("value")); 
    349             } else if(currentComponentHash != null){ 
     348            } else if(currentGUIElementHash != null){ 
    350349                if ("title".equals(atts.getValue("name"))) { 
    351350                                currentGuiElementSpec.setName(atts.getValue("value")); 
     
    390389                currentGuiElementSpec.setTypeHierarchy(currentTypeHierarchy); 
    391390        } 
    392         else if (qName.equals("component") && currentComponentHash != null) { 
    393                 currentGUIElementTree.add(currentComponentHash, currentParentHash, currentGuiElementSpec); 
     391        else if (qName.equals("component") && currentGUIElementHash != null) { 
     392                currentGUIElementTree.add(currentGUIElementHash, currentParentHash, currentGuiElementSpec); 
    394393                // do something with the ancestor list here 
    395394                 
    396                 currentComponentHash = null; 
     395                currentGUIElementHash = null; 
    397396                currentParentHash = null; 
    398397                currentTypeHierarchy = null; 
     
    609608    /** 
    610609     * <p> 
    611      * for some events in the log file, no component specification is provided. In this case the 
     610     * for some events in the log file, no GUI element specification is provided. In this case the 
    612611     * GUI element on which the event is executed must be determined based on the 
    613612     * <code>toString</code> parameter of the event. This is achieved through this method. The 
Note: See TracChangeset for help on using the changeset viewer.