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"
Location:
trunk/autoquest-plugin-jfc/src/main/java/de/ugoe/cs/autoquest/plugin/jfc
Files:
2 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 
  • trunk/autoquest-plugin-jfc/src/main/java/de/ugoe/cs/autoquest/plugin/jfc/guimodel/JFCComponentTree.java

    r984 r1003  
    2727/** 
    2828 * <p> 
    29  * This class provides an the interfaces for component trees. 
     29 * @deprecated Use GUIElementTree instead, which provides a generalization. 
     30 * </p> 
     31 * <p> 
     32 * This class provides the interfaces for component trees. 
    3033 * </p> 
    3134 * <p> 
Note: See TracChangeset for help on using the changeset viewer.