Ignore:
Timestamp:
05/19/17 11:31:29 (7 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
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-plugin-html-test/src/test/java/de/ugoe/cs/autoquest/plugin/html/commands/CMDcondenseHTMLGUIModelTest.java

    r1387 r2146  
    2626import org.junit.Test; 
    2727 
     28import de.ugoe.cs.autoquest.eventcore.HierarchicalEventTargetGroup; 
     29import de.ugoe.cs.autoquest.eventcore.EventTargetModelException; 
     30import de.ugoe.cs.autoquest.eventcore.IHierarchicalEventTargetModel; 
    2831import de.ugoe.cs.autoquest.eventcore.guimodel.GUIElementFactory; 
    29 import de.ugoe.cs.autoquest.eventcore.guimodel.GUIElementGroup; 
    3032import de.ugoe.cs.autoquest.eventcore.guimodel.GUIModel; 
    31 import de.ugoe.cs.autoquest.eventcore.guimodel.GUIModel.Traverser; 
    32 import de.ugoe.cs.autoquest.eventcore.guimodel.GUIModelException; 
    3333import de.ugoe.cs.autoquest.eventcore.guimodel.IGUIElement; 
    3434import de.ugoe.cs.autoquest.eventcore.guimodel.IGUIElementSpec; 
     
    343343     */ 
    344344    private GUIModel generateGUIModel(String[] guiSpec) 
    345         throws IllegalArgumentException, GUIModelException 
     345        throws IllegalArgumentException, EventTargetModelException 
    346346    { 
    347347        GUIModel model = new GUIModel(true); 
     
    430430        } 
    431431         
    432         GUIModel.Traverser traverser = guiModel.getTraverser(); 
     432        IHierarchicalEventTargetModel.Traverser<IGUIElement> traverser = guiModel.getTraverser(); 
    433433         
    434434        assertPaths(traverser, "", paths); 
     
    440440     * 
    441441     */ 
    442     private void assertPaths(Traverser traverser, String path, List<String> paths) { 
     442    private void assertPaths(IHierarchicalEventTargetModel.Traverser<IGUIElement> traverser, String path, List<String> paths) { 
    443443        if (traverser.hasFirstChild()) { 
    444444            IGUIElement childElement = traverser.firstChild(); 
     
    481481            } 
    482482        } 
    483         else if (childElement instanceof GUIElementGroup) { 
    484             String tmp = ((GUIElementGroup) childElement).getStringIdentifier(); 
     483        else if (childElement instanceof HierarchicalEventTargetGroup) { 
     484            String tmp = ((HierarchicalEventTargetGroup) childElement).getStringIdentifier(); 
    485485            tmp = tmp.replaceAll("/", ""); 
    486486            tmp = tmp.replaceAll("\\[", ""); 
Note: See TracChangeset for help on using the changeset viewer.