Ignore:
Timestamp:
12/11/12 16:48:01 (12 years ago)
Author:
fglaser
Message:
  • autoquest-plugin-mfc subproject refactored to use GUI element naming convention were appropriate
  • MFCWindowTree marked as deprecated (one should use generalized GUIElementTree instead)
File:
1 edited

Legend:

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

    r1006 r1008  
    1818import de.ugoe.cs.autoquest.eventcore.guimodel.IGUIElementSpec; 
    1919import de.ugoe.cs.autoquest.plugin.mfc.guimodel.MFCGUIElementSpec; 
    20 import de.ugoe.cs.autoquest.plugin.mfc.guimodel.MFCWindowTree; 
    2120 
    2221/** 
    2322 * <p> 
    24  * Message handler for {@code WM_CREATE} messages. The handler maintains the {@link MFCWindowTree}. 
     23 * Message handler for {@code WM_CREATE} messages. The handler maintains the {@link GUIElementTree}. 
    2524 * </p> 
    2625 *  
     
    4443    /** 
    4544     * <p> 
    46      * Name of the created window. 
     45     * Name of the created GUI element. 
    4746     * </p> 
    4847     */ 
    49     private String windowName; 
     48    private String guiElementName; 
    5049 
    5150    /** 
    5251     * <p> 
    53      * HWND of the created window. 
     52     * HWND of the created GUI element. 
    5453     * </p> 
    5554     */ 
     
    5857    /** 
    5958     * <p> 
    60      * HWND of the created window's parent. 
     59     * HWND of the created GUI elements's parent. 
    6160     * </p> 
    6261     */ 
     
    6564    /** 
    6665     * <p> 
    67      * Resource Id of the created window. 
     66     * Resource Id of the created element. 
    6867     * </p> 
    6968     */ 
     
    7271    /** 
    7372     * <p> 
    74      * Window class of the created window. 
     73     * GUI element class of the created element. 
    7574     * </p> 
    7675     */ 
     
    7978    /** 
    8079     * <p> 
    81      * Modality of the created window. 
     80     * Modality of the created GUI element. 
    8281     * </p> 
    8382     */ 
     
    9291    public void onEndElement() { 
    9392        if (hwnd != 0) { 
    94                 IGUIElementSpec spec = new MFCGUIElementSpec(hwnd, windowName, resourceId, className, isModal); 
     93                IGUIElementSpec spec = new MFCGUIElementSpec(hwnd, guiElementName, resourceId, className, isModal); 
    9594            super.getGUIElementTree().add(hwnd, parentHwnd, spec); 
    9695        } 
     
    109108        } 
    110109        else if (name.equals("window.name")) { 
    111             windowName = value; 
     110            guiElementName = value; 
    112111        } 
    113112        else if (name.equals("window.parent.hwnd")) { 
     
    139138    @Override 
    140139    public void onStartElement() { 
    141         windowName = ""; 
     140        guiElementName = ""; 
    142141        hwnd = 0; 
    143142        parentHwnd = 0; 
Note: See TracChangeset for help on using the changeset viewer.