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/HandlerSetText.java

    r1006 r1008  
    1818import de.ugoe.cs.autoquest.plugin.mfc.guimodel.MFCGUIElement; 
    1919import de.ugoe.cs.autoquest.plugin.mfc.guimodel.MFCGUIElementSpec; 
    20 import de.ugoe.cs.autoquest.plugin.mfc.guimodel.MFCWindowTree; 
    2120 
    2221/** 
    2322 * <p> 
    24  * Handles {@code WM_SETTEXT} messages. Handler maintains the {@link MFCWindowTree}. 
     23 * Handles {@code WM_SETTEXT} messages. Handler maintains the {@link GUIElementTree}. 
    2524 * </p> 
    2625 *  
     
    4544    /** 
    4645     * <p> 
    47      * New name of the window. 
     46     * New name of the GUI element. 
    4847     * </p> 
    4948     */ 
    50     private String windowName; 
     49    private String guiElementName; 
    5150 
    5251    /** 
    5352     * <p> 
    54      * HWND of the window. 
     53     * HWND of the GUI element. 
    5554     * </p> 
    5655     */ 
     
    6766                MFCGUIElement element = (MFCGUIElement) super.getGUIElementTree().find(hwnd); 
    6867                MFCGUIElementSpec spec = (MFCGUIElementSpec) element.getSpecification(); 
    69             spec.setName(windowName); 
     68            spec.setName(guiElementName); 
    7069        } 
    7170    } 
     
    8382        } 
    8483        else if (name.equals("window.newText")) { 
    85             windowName = value; 
     84            guiElementName = value; 
    8685        } 
    8786    } 
     
    9493    @Override 
    9594    public void onStartElement() { 
    96         windowName = ""; 
     95        guiElementName = ""; 
    9796        hwnd = 0; 
    9897    } 
Note: See TracChangeset for help on using the changeset viewer.