Ignore:
Timestamp:
03/04/14 12:19:00 (10 years ago)
Author:
pharms
Message:
  • added support to retrieve the GUI model to which a GUI element belongs from the GUI element itself
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-core-events/src/main/java/de/ugoe/cs/autoquest/eventcore/guimodel/GUIModel.java

    r1360 r1433  
    352352         
    353353        TreeNode replacement = new TreeNode(); 
    354         replacement.guiElement = new GUIElementGroup(groupName, parent.guiElement); 
     354        replacement.guiElement = new GUIElementGroup(groupName, parent.guiElement, this); 
    355355         
    356356        for (TreeNode child : nodesToGroup) { 
     
    487487     *             thrown in cases such as the GUI element object could not be instantiated 
    488488     */ 
    489     private IGUIElement integratePath(TreeNode parentNode, 
     489    private IGUIElement integratePath(TreeNode                        parentNode, 
    490490                                      List<? extends IGUIElementSpec> remainingPath, 
    491                                       IGUIElementFactory guiElementFactory) 
     491                                      IGUIElementFactory              guiElementFactory) 
    492492        throws GUIModelException 
    493493    { 
     
    500500                                                        parentNode.guiElement); 
    501501 
     502            if (newElement instanceof AbstractDefaultGUIElement) { 
     503                ((AbstractDefaultGUIElement) newElement).setGUIModel(this); 
     504            } 
     505             
    502506            child = parentNode.addChild(newElement); 
    503507            allNodes.put(child.guiElement, child); 
Note: See TracChangeset for help on using the changeset viewer.