Changeset 1008 for trunk/autoquest-plugin-mfc/src/main/java/de
- Timestamp:
- 12/11/12 16:48:01 (12 years ago)
- Location:
- trunk/autoquest-plugin-mfc/src/main/java/de/ugoe/cs/autoquest/plugin/mfc
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-plugin-mfc/src/main/java/de/ugoe/cs/autoquest/plugin/mfc/EventGenerator.java
r1006 r1008 121 121 /** 122 122 * <p> 123 * reference to the guielement tree created during parsing123 * reference to the GUI element tree created during parsing 124 124 * </p> 125 125 */ -
trunk/autoquest-plugin-mfc/src/main/java/de/ugoe/cs/autoquest/plugin/mfc/HandlerCreate.java
r1006 r1008 18 18 import de.ugoe.cs.autoquest.eventcore.guimodel.IGUIElementSpec; 19 19 import de.ugoe.cs.autoquest.plugin.mfc.guimodel.MFCGUIElementSpec; 20 import de.ugoe.cs.autoquest.plugin.mfc.guimodel.MFCWindowTree;21 20 22 21 /** 23 22 * <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}. 25 24 * </p> 26 25 * … … 44 43 /** 45 44 * <p> 46 * Name of the created window.45 * Name of the created GUI element. 47 46 * </p> 48 47 */ 49 private String windowName;48 private String guiElementName; 50 49 51 50 /** 52 51 * <p> 53 * HWND of the created window.52 * HWND of the created GUI element. 54 53 * </p> 55 54 */ … … 58 57 /** 59 58 * <p> 60 * HWND of the created window's parent.59 * HWND of the created GUI elements's parent. 61 60 * </p> 62 61 */ … … 65 64 /** 66 65 * <p> 67 * Resource Id of the created window.66 * Resource Id of the created element. 68 67 * </p> 69 68 */ … … 72 71 /** 73 72 * <p> 74 * Window class of the created window.73 * GUI element class of the created element. 75 74 * </p> 76 75 */ … … 79 78 /** 80 79 * <p> 81 * Modality of the created window.80 * Modality of the created GUI element. 82 81 * </p> 83 82 */ … … 92 91 public void onEndElement() { 93 92 if (hwnd != 0) { 94 IGUIElementSpec spec = new MFCGUIElementSpec(hwnd, windowName, resourceId, className, isModal);93 IGUIElementSpec spec = new MFCGUIElementSpec(hwnd, guiElementName, resourceId, className, isModal); 95 94 super.getGUIElementTree().add(hwnd, parentHwnd, spec); 96 95 } … … 109 108 } 110 109 else if (name.equals("window.name")) { 111 windowName = value;110 guiElementName = value; 112 111 } 113 112 else if (name.equals("window.parent.hwnd")) { … … 139 138 @Override 140 139 public void onStartElement() { 141 windowName = "";140 guiElementName = ""; 142 141 hwnd = 0; 143 142 parentHwnd = 0; -
trunk/autoquest-plugin-mfc/src/main/java/de/ugoe/cs/autoquest/plugin/mfc/HandlerDestroy.java
r1006 r1008 19 19 /** 20 20 * <p> 21 * Handler for {@code WM_DESTROY} message. The handler maintains the {@link MFCWindowTree}.21 * Handler for {@code WM_DESTROY} message. The handler maintains the {@link GUIElementTree}. 22 22 * </p> 23 23 * … … 42 42 /** 43 43 * <p> 44 * HWND of the windowthat is destroyed.44 * HWND of the GUI element that is destroyed. 45 45 * </p> 46 46 */ -
trunk/autoquest-plugin-mfc/src/main/java/de/ugoe/cs/autoquest/plugin/mfc/HandlerSetText.java
r1006 r1008 18 18 import de.ugoe.cs.autoquest.plugin.mfc.guimodel.MFCGUIElement; 19 19 import de.ugoe.cs.autoquest.plugin.mfc.guimodel.MFCGUIElementSpec; 20 import de.ugoe.cs.autoquest.plugin.mfc.guimodel.MFCWindowTree;21 20 22 21 /** 23 22 * <p> 24 * Handles {@code WM_SETTEXT} messages. Handler maintains the {@link MFCWindowTree}.23 * Handles {@code WM_SETTEXT} messages. Handler maintains the {@link GUIElementTree}. 25 24 * </p> 26 25 * … … 45 44 /** 46 45 * <p> 47 * New name of the window.46 * New name of the GUI element. 48 47 * </p> 49 48 */ 50 private String windowName;49 private String guiElementName; 51 50 52 51 /** 53 52 * <p> 54 * HWND of the window.53 * HWND of the GUI element. 55 54 * </p> 56 55 */ … … 67 66 MFCGUIElement element = (MFCGUIElement) super.getGUIElementTree().find(hwnd); 68 67 MFCGUIElementSpec spec = (MFCGUIElementSpec) element.getSpecification(); 69 spec.setName( windowName);68 spec.setName(guiElementName); 70 69 } 71 70 } … … 83 82 } 84 83 else if (name.equals("window.newText")) { 85 windowName = value;84 guiElementName = value; 86 85 } 87 86 } … … 94 93 @Override 95 94 public void onStartElement() { 96 windowName = "";95 guiElementName = ""; 97 96 hwnd = 0; 98 97 } -
trunk/autoquest-plugin-mfc/src/main/java/de/ugoe/cs/autoquest/plugin/mfc/MFCLogParser.java
r1006 r1008 73 73 /** 74 74 * <p> 75 * internal handle to the guielement tree75 * internal handle to the GUI element tree 76 76 * </p> 77 77 */ … … 246 246 /** 247 247 * <p> 248 * Returns the guimodel that is obtained from parsing log files.248 * Returns the GUI model that is obtained from parsing log files. 249 249 * </p> 250 250 * -
trunk/autoquest-plugin-mfc/src/main/java/de/ugoe/cs/autoquest/plugin/mfc/guimodel/MFCWindowTree.java
r940 r1008 23 23 24 24 import de.ugoe.cs.autoquest.eventcore.guimodel.GUIElementFactory; 25 import de.ugoe.cs.autoquest.eventcore.guimodel.GUIElementTree; 25 26 import de.ugoe.cs.autoquest.eventcore.guimodel.GUIModel; 26 27 import de.ugoe.cs.autoquest.eventcore.guimodel.GUIModelException; … … 38 39 * @author Steffen Herbold 39 40 * @version 1.0 41 * @deprecated This class is replaced by a generalized version. Use {@link #GUIElementTree} instead. 42 * @see #GUIElementTree 40 43 */ 41 44 public class MFCWindowTree {
Note: See TracChangeset
for help on using the changeset viewer.