Ignore:
Timestamp:
12/05/12 12:54:01 (12 years ago)
Author:
fglaser
Message:
  • MFCLogParser and its components updated to work with generalized GUIElementTree
  • NOTE THAT GUIElementTree ADDS ALL COMPONENTS TO GUIModel NOT ONLY THE USED ONES (compare MFCWindowTree).
  • guimapping-MFC-Dummy.txt added to cover newly discovered classes (needs to be updated).
File:
1 edited

Legend:

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

    r940 r1006  
    1515package de.ugoe.cs.autoquest.plugin.mfc; 
    1616 
     17import de.ugoe.cs.autoquest.eventcore.guimodel.GUIElementTree; 
     18import de.ugoe.cs.autoquest.plugin.mfc.guimodel.MFCGUIElement; 
     19import de.ugoe.cs.autoquest.plugin.mfc.guimodel.MFCGUIElementSpec; 
    1720import de.ugoe.cs.autoquest.plugin.mfc.guimodel.MFCWindowTree; 
    1821 
     
    2326 *  
    2427 * @author Steffen Herbold 
     28 * @author Fabian Glaser 
    2529 * @version 1.0 
    2630 */ 
     
    3236     * </p> 
    3337     *  
    34      * @param windowTree 
     38     * @param guiElementTree 
    3539     *            the tree of GUI element specifications to be created and adapted during parsing 
    3640     */ 
    37     public HandlerSetText(MFCWindowTree windowTree) { 
    38         super(windowTree); 
     41    public HandlerSetText(GUIElementTree guiElementTree) { 
     42        super(guiElementTree); 
    3943    } 
    4044 
     
    6165    public void onEndElement() { 
    6266        if (hwnd != 0) { 
    63             super.getWindowTree().setName(hwnd, windowName); 
     67                MFCGUIElement element = (MFCGUIElement) super.getGUIElementTree().find(hwnd); 
     68                MFCGUIElementSpec spec = (MFCGUIElementSpec) element.getSpecification(); 
     69            spec.setName(windowName); 
    6470        } 
    6571    } 
Note: See TracChangeset for help on using the changeset viewer.