Changeset 1084 for trunk/autoquest-plugin-mfc/src/main/java/de/ugoe/cs
- Timestamp:
- 02/18/13 09:30:13 (12 years ago)
- Location:
- trunk/autoquest-plugin-mfc/src/main/java/de/ugoe/cs/autoquest/plugin/mfc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-plugin-mfc/src/main/java/de/ugoe/cs/autoquest/plugin/mfc/HandlerCreate.java
r1028 r1084 15 15 package de.ugoe.cs.autoquest.plugin.mfc; 16 16 17 import org.xml.sax.SAXException; 18 17 19 import de.ugoe.cs.autoquest.eventcore.guimodel.GUIElementTree; 20 import de.ugoe.cs.autoquest.eventcore.guimodel.GUIModelException; 18 21 import de.ugoe.cs.autoquest.eventcore.guimodel.IGUIElementSpec; 19 22 import de.ugoe.cs.autoquest.plugin.mfc.guimodel.MFCGUIElementSpec; … … 89 92 */ 90 93 @Override 91 public void onEndElement() {94 public void onEndElement() throws SAXException { 92 95 if (hwnd != 0) { 93 96 IGUIElementSpec spec = new MFCGUIElementSpec(hwnd, guiElementName, resourceId, className, isModal); 94 super.getGUIElementTree().add(hwnd, parentHwnd, spec); 97 try { 98 super.getGUIElementTree().add(hwnd, parentHwnd, spec); 99 } 100 catch (GUIModelException e) { 101 throw new SAXException("could not handle GUI element with handle " + 102 hwnd + ": " + e.getMessage(), e); 103 } 95 104 } 96 105 } -
trunk/autoquest-plugin-mfc/src/main/java/de/ugoe/cs/autoquest/plugin/mfc/MessageHandler.java
r1028 r1084 14 14 15 15 package de.ugoe.cs.autoquest.plugin.mfc; 16 17 import org.xml.sax.SAXException; 16 18 17 19 import de.ugoe.cs.autoquest.eventcore.guimodel.GUIElementTree; … … 73 75 * Called in the endElement() method of {@link MFCLogParser} when a msg-node ends. 74 76 * </p> 77 * 78 * @throws SAXException if the msg-node could not be processed for some reason 75 79 */ 76 public void onEndElement() {}80 public void onEndElement() throws SAXException {} 77 81 78 82 /**
Note: See TracChangeset
for help on using the changeset viewer.