Ignore:
Timestamp:
02/18/13 09:30:13 (11 years ago)
Author:
pharms
Message:
  • forwarded problems in GUI element mapping to parser to allow better handling of this exception
File:
1 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    } 
Note: See TracChangeset for help on using the changeset viewer.