X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fxwt%2FTrap.java;h=94624ae2686e0740b519d6baadb0247280a8661b;hb=9d0d07d829e691bfb4f74f4451676e6ed0618cb6;hp=d2b39541179a4bb509272828cd2dec64af0c4bf0;hpb=6242c991f365dbd67eba62ecfa5df769a83fcbc6;p=org.ibex.core.git diff --git a/src/org/xwt/Trap.java b/src/org/xwt/Trap.java index d2b3954..94624ae 100644 --- a/src/org/xwt/Trap.java +++ b/src/org/xwt/Trap.java @@ -16,7 +16,7 @@ public class Trap { // Static Data ////////////////////////////////////////////////////////////// /** a vector of weak references to all instances of Trap; used for retheming */ - private static Vec allTraps = new Vec(1000); + private static Hashtable allTraps = new Hashtable(1000); /** List of properties that cannot be trapped */ private static final Hash PROHIBITED = new Hash(120, 3); @@ -32,6 +32,9 @@ public class Trap { for(int i=0; ib. Used for retheming */ public static void removeAllTrapsByBox(Box b) { - for(int i=0; i