Ignore:
Timestamp:
05/19/17 11:31:29 (8 years ago)
Author:
pharms
Message:
  • refactored GUI model so that hierarchical event target structures can also be used and created by plugins not being strictly for GUIs
Location:
trunk/autoquest-plugin-jfc/src/main/java/de/ugoe/cs/autoquest/plugin/jfc
Files:
4 edited

Legend:

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

    r1009 r2146  
    4343 
    4444import de.ugoe.cs.autoquest.eventcore.Event; 
     45import de.ugoe.cs.autoquest.eventcore.EventTargetModelException; 
    4546import de.ugoe.cs.autoquest.eventcore.gui.IInteraction; 
    4647import de.ugoe.cs.autoquest.eventcore.gui.KeyPressed; 
     
    5354import de.ugoe.cs.autoquest.eventcore.guimodel.GUIElementFactory; 
    5455import de.ugoe.cs.autoquest.eventcore.guimodel.GUIModel; 
    55 import de.ugoe.cs.autoquest.eventcore.guimodel.GUIModelException; 
    5656import de.ugoe.cs.autoquest.eventcore.guimodel.IGUIElement; 
    5757import de.ugoe.cs.autoquest.keyboardmaps.VirtualKey; 
     
    407407                        (currentGuiElementPath, GUIElementFactory.getInstance()); 
    408408                } 
    409                 catch (GUIModelException e) { 
     409                catch (EventTargetModelException e) { 
    410410                    throw new SAXException("error in the GUI model provided in the log", e); 
    411411                } 
  • trunk/autoquest-plugin-jfc/src/main/java/de/ugoe/cs/autoquest/plugin/jfc/JFCSimplifiedLogParser.java

    r1860 r2146  
    4141 
    4242import de.ugoe.cs.autoquest.eventcore.Event; 
     43import de.ugoe.cs.autoquest.eventcore.EventTargetModelException; 
    4344import de.ugoe.cs.autoquest.eventcore.gui.IInteraction; 
    4445import de.ugoe.cs.autoquest.eventcore.gui.KeyPressed; 
     
    5152import de.ugoe.cs.autoquest.eventcore.guimodel.GUIElementTree; 
    5253import de.ugoe.cs.autoquest.eventcore.guimodel.GUIModel; 
    53 import de.ugoe.cs.autoquest.eventcore.guimodel.GUIModelException; 
    5454import de.ugoe.cs.autoquest.eventcore.guimodel.IGUIElement; 
    5555import de.ugoe.cs.autoquest.keyboardmaps.VirtualKey; 
     
    436436                currentGUIElementTree.add(guiElementId, parentGuiElementId, currentGuiElementSpec); 
    437437            } 
    438             catch (GUIModelException e) { 
     438            catch (EventTargetModelException e) { 
    439439                throw new SAXException("could not handle GUI element with hash " + 
    440440                                       currentGUIElementHash + ": " + e.getMessage(), e); 
  • trunk/autoquest-plugin-jfc/src/main/java/de/ugoe/cs/autoquest/plugin/jfc/guimodel/JFCGUIElement.java

    r2044 r2146  
    1515package de.ugoe.cs.autoquest.plugin.jfc.guimodel; 
    1616 
     17import de.ugoe.cs.autoquest.eventcore.IEventTargetSpec; 
    1718import de.ugoe.cs.autoquest.eventcore.guimodel.AbstractDefaultGUIElement; 
    1819import de.ugoe.cs.autoquest.eventcore.guimodel.IGUIElement; 
    19 import de.ugoe.cs.autoquest.eventcore.guimodel.IGUIElementSpec; 
    2020import de.ugoe.cs.autoquest.eventcore.guimodel.IGUIView; 
    2121 
     
    169169     */ 
    170170    @Override 
    171     public void updateSpecification(IGUIElementSpec updateSpecification) { 
     171    public void updateSpecification(IEventTargetSpec updateSpecification) { 
    172172        if (updateSpecification instanceof JFCGUIElementSpec) { 
    173173            specification.update(((JFCGUIElementSpec) updateSpecification)); 
  • trunk/autoquest-plugin-jfc/src/main/java/de/ugoe/cs/autoquest/plugin/jfc/guimodel/JFCGUIElementSpec.java

    r1904 r2146  
    2121import org.apache.commons.lang.mutable.MutableInt; 
    2222 
     23import de.ugoe.cs.autoquest.eventcore.IEventTargetSpec; 
    2324import de.ugoe.cs.autoquest.eventcore.guimodel.IGUIElement; 
    2425import de.ugoe.cs.autoquest.eventcore.guimodel.IGUIElementSpec; 
     
    113114     */ 
    114115    @Override 
    115     public boolean getSimilarity(IGUIElementSpec other) { 
     116    public boolean getSimilarity(IEventTargetSpec other) { 
    116117        if (this == other) { 
    117118            return true; 
Note: See TracChangeset for help on using the changeset viewer.