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
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-plugin-jfc/src/main/java/de/ugoe/cs/autoquest/plugin/jfc/JFCSimplifiedLogParser.java

    r1058 r1084  
    3838import de.ugoe.cs.autoquest.eventcore.guimodel.GUIElementTree; 
    3939import de.ugoe.cs.autoquest.eventcore.guimodel.GUIModel; 
     40import de.ugoe.cs.autoquest.eventcore.guimodel.GUIModelException; 
    4041import de.ugoe.cs.autoquest.eventcore.guimodel.IGUIElement; 
    4142import de.ugoe.cs.autoquest.keyboardmaps.VirtualKey; 
     
    397398        } 
    398399        else if (qName.equals("component") && currentGUIElementHash != null) { 
    399             currentGUIElementTree.add(currentGUIElementHash, currentParentHash, 
    400                                       currentGuiElementSpec); 
     400            try { 
     401                currentGUIElementTree.add(currentGUIElementHash, currentParentHash, 
     402                                          currentGuiElementSpec); 
     403            } 
     404            catch (GUIModelException e) { 
     405                throw new SAXException("could not handle GUI element with hash " + 
     406                                       currentGUIElementHash + ": " + e.getMessage(), e); 
     407            } 
    401408            List<Event> unhandledEvents = eventsWithoutTargets.get(currentGUIElementHash); 
    402409            if (unhandledEvents != null) { 
Note: See TracChangeset for help on using the changeset viewer.