Changeset 157 for trunk/EventBenchConsole/src/de/ugoe/cs
- Timestamp:
- 08/14/11 19:44:50 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/windows/data/WindowTree.java ¶
r52 r157 1 1 package de.ugoe.cs.eventbench.windows.data; 2 2 3 import java.util.ArrayList; 3 4 import java.util.HashMap; 4 5 import java.util.List; 5 6 import java.util.Map; 7 8 import de.ugoe.cs.eventbench.data.GlobalDataContainer; 9 import de.ugoe.cs.util.console.Console; 6 10 7 11 /** … … 93 97 * class name of the window to be created 94 98 */ 99 @SuppressWarnings("unchecked") 95 100 public void add(int parentHwnd, int childHwnd, String childWindowName, 96 101 int resourceId, String className, boolean isModal) { … … 107 112 nodes.put(childHwnd, child); 108 113 } 114 115 // store targets in GlobalDataContainer to be able to work on with them 116 // in DlgInsert 117 List<String> treeTargets = new ArrayList<String>(); 118 119 if (GlobalDataContainer.getInstance().getData("ListTargets") == null) { 120 GlobalDataContainer.getInstance().addData("ListTargets", 121 treeTargets); 122 } 123 124 try { 125 treeTargets = (List<String>) GlobalDataContainer.getInstance() 126 .getData("ListTargets"); 127 } catch (ClassCastException e) { 128 Console.println("Not able to cast data in GlobalDataContainer to List of Strings"); 129 } 130 131 treeTargets.add(nodes.get(childHwnd).xmlRepresentation()); 109 132 } 110 133 … … 150 173 return nodes.get(hwnd); 151 174 } 152 175 153 176 /** 154 177 * <p>
Note: See TracChangeset
for help on using the changeset viewer.