Ignore:
Timestamp:
02/18/13 18:18:11 (12 years ago)
Author:
pharms
Message:
  • added a GUI model test
  • performed some bug fixes
  • added a possibility to navigate a traverser to a specific GUI element in the model
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-ui-swt/src/main/java/de/ugoe/cs/autoquest/ui/swt/ShowGuiModelDialog.java

    r1086 r1088  
    1414 
    1515package de.ugoe.cs.autoquest.ui.swt; 
    16  
    17 import java.util.List; 
    1816 
    1917import org.eclipse.swt.SWT; 
     
    148146    } 
    149147 
    150     private void buildGuiTree(TreeItem currentParent, List<IGUIElement> elements) { 
    151         for (IGUIElement element : elements) { 
    152             TreeItem child = new TreeItem(currentParent, SWT.NULL); 
    153             child.setText(element.toString()); 
    154             child.setData(element); 
    155             buildGuiTree(child, model.getChildren(element)); 
    156         } 
    157     } 
    158  
    159148    private void expandAll(Tree tree, boolean expanded) { 
    160149        for (TreeItem item : tree.getItems()) { 
     
    203192        // update visualization of the model 
    204193        firstParent.removeAll(); 
    205         buildGuiTree(firstParent, model.getChildren((IGUIElement) firstParent.getData())); 
     194        buildGuiTree(firstParent, model.getTraverser((IGUIElement) firstParent.getData())); 
    206195        firstParent.setExpanded(true); 
    207196    } 
Note: See TracChangeset for help on using the changeset viewer.