Ignore:
Timestamp:
02/18/13 09:30:13 (12 years ago)
Author:
pharms
Message:
  • forwarded problems in GUI element mapping to parser to allow better handling of this exception
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  
    1515package de.ugoe.cs.autoquest.plugin.mfc; 
    1616 
     17import org.xml.sax.SAXException; 
     18 
    1719import de.ugoe.cs.autoquest.eventcore.guimodel.GUIElementTree; 
     20import de.ugoe.cs.autoquest.eventcore.guimodel.GUIModelException; 
    1821import de.ugoe.cs.autoquest.eventcore.guimodel.IGUIElementSpec; 
    1922import de.ugoe.cs.autoquest.plugin.mfc.guimodel.MFCGUIElementSpec; 
     
    8992     */ 
    9093    @Override 
    91     public void onEndElement() { 
     94    public void onEndElement() throws SAXException { 
    9295        if (hwnd != 0) { 
    9396                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            } 
    95104        } 
    96105    } 
  • trunk/autoquest-plugin-mfc/src/main/java/de/ugoe/cs/autoquest/plugin/mfc/MessageHandler.java

    r1028 r1084  
    1414 
    1515package de.ugoe.cs.autoquest.plugin.mfc; 
     16 
     17import org.xml.sax.SAXException; 
    1618 
    1719import de.ugoe.cs.autoquest.eventcore.guimodel.GUIElementTree; 
     
    7375     * Called in the endElement() method of {@link MFCLogParser} when a msg-node ends. 
    7476     * </p> 
     77     *  
     78     * @throws SAXException if the msg-node could not be processed for some reason 
    7579     */ 
    76     public void onEndElement() {} 
     80    public void onEndElement() throws SAXException {} 
    7781 
    7882    /** 
Note: See TracChangeset for help on using the changeset viewer.