Ignore:
Timestamp:
11/28/12 12:05:15 (12 years ago)
Author:
fglaser
Message:
  • JFCSimpliefiedLogParser updated to use new GUIElementTree instead of JFCComponentTree
  • JFCComponentTree marked as "deprecated"
File:
1 edited

Legend:

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

    r1001 r1003  
    3737import de.ugoe.cs.autoquest.eventcore.gui.MouseButtonUp; 
    3838import de.ugoe.cs.autoquest.eventcore.gui.MouseClick; 
     39import de.ugoe.cs.autoquest.eventcore.guimodel.GUIElementTree; 
    3940import de.ugoe.cs.autoquest.eventcore.guimodel.GUIModel; 
    4041import de.ugoe.cs.autoquest.eventcore.guimodel.IGUIElement; 
     
    127128     * </p> 
    128129     */ 
    129     private JFCComponentTree currentComponentTree; 
     130    private GUIElementTree currentGUIElementTree; 
    130131 
    131132    /** 
     
    293294     */ 
    294295    public GUIModel getGuiModel() { 
    295         return currentComponentTree.getGUIModel(); 
     296        return currentGUIElementTree.getGUIModel(); 
    296297    } 
    297298 
     
    306307        if (qName.equals("sessions")) { 
    307308            currentSequence = new LinkedList<Event>(); 
    308             if (currentComponentTree == null) 
    309                 currentComponentTree = new JFCComponentTree(); 
     309            if (currentGUIElementTree == null) 
     310                currentGUIElementTree = new GUIElementTree(); 
    310311        } 
    311312        if (qName.equals("newsession")) { 
     
    333334                String newName = atts.getValue("newName"); 
    334335                int titleSource = Integer.parseInt(atts.getValue("titleSource")); 
    335                 JFCGUIElement sourceElement = (JFCGUIElement) currentComponentTree.find(sourceHash); 
     336                JFCGUIElement sourceElement = (JFCGUIElement) currentGUIElementTree.find(sourceHash); 
    336337                JFCGUIElementSpec sourceSpec = (JFCGUIElementSpec) sourceElement.getSpecification(); 
    337338                sourceSpec.setName(newName); 
     
    390391        } 
    391392        else if (qName.equals("component") && currentComponentHash != null) { 
    392                 currentComponentTree.add(currentComponentHash, currentParentHash, currentGuiElementSpec); 
     393                currentGUIElementTree.add(currentComponentHash, currentParentHash, currentGuiElementSpec); 
    393394                // do something with the ancestor list here 
    394395                 
     
    401402                 
    402403                IGUIElement currentGUIElement; 
    403                 currentGUIElement = currentComponentTree.find(currentEventSource); 
     404                currentGUIElement = currentGUIElementTree.find(currentEventSource); 
    404405                 
    405406                Event event = new Event 
Note: See TracChangeset for help on using the changeset viewer.