Changeset 215 for trunk/EventBenchConsole/src/de/ugoe/cs
- Timestamp:
- 09/28/11 11:53:04 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/windows/data/WindowTree.java
r172 r215 1 1 package de.ugoe.cs.eventbench.windows.data; 2 2 3 import java.util.ArrayList;4 3 import java.util.HashMap; 5 4 import java.util.List; 6 5 import java.util.Map; 6 import java.util.SortedSet; 7 import java.util.TreeSet; 7 8 8 9 import de.ugoe.cs.eventbench.data.GlobalDataContainer; … … 180 181 @SuppressWarnings("unchecked") 181 182 private void storeTarget(int hwnd) { 182 List<String> treeTargets = new ArrayList<String>();183 SortedSet<String> targets = new TreeSet<String>(); 183 184 184 185 if (GlobalDataContainer.getInstance().getData("ListTargets") == null) { 185 GlobalDataContainer.getInstance().addData("ListTargets", 186 treeTargets); 186 GlobalDataContainer.getInstance().addData("ListTargets", targets); 187 187 } 188 188 189 189 try { 190 t reeTargets = (List<String>) GlobalDataContainer.getInstance()191 .getData("ListTargets");190 targets = (SortedSet<String>) GlobalDataContainer.getInstance().getData("ListTargets"); 191 targets.add(nodes.get(hwnd).xmlRepresentation()); 192 192 } catch (ClassCastException e) { 193 Console.println("Not able to cast data in GlobalDataContainer to List of Strings"); 194 } 195 196 treeTargets.add(nodes.get(hwnd).xmlRepresentation()); 193 Console.println("Not able to cast data in GlobalDataContainer to SortedSet of Strings"); 194 } 197 195 } 198 196 }
Note: See TracChangeset
for help on using the changeset viewer.