Changeset 1088 for trunk/autoquest-ui-swt
- Timestamp:
- 02/18/13 18:18:11 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-ui-swt/src/main/java/de/ugoe/cs/autoquest/ui/swt/ShowGuiModelDialog.java
r1086 r1088 14 14 15 15 package de.ugoe.cs.autoquest.ui.swt; 16 17 import java.util.List;18 16 19 17 import org.eclipse.swt.SWT; … … 148 146 } 149 147 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 159 148 private void expandAll(Tree tree, boolean expanded) { 160 149 for (TreeItem item : tree.getItems()) { … … 203 192 // update visualization of the model 204 193 firstParent.removeAll(); 205 buildGuiTree(firstParent, model.get Children((IGUIElement) firstParent.getData()));194 buildGuiTree(firstParent, model.getTraverser((IGUIElement) firstParent.getData())); 206 195 firstParent.setExpanded(true); 207 196 }
Note: See TracChangeset
for help on using the changeset viewer.