X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fxwt%2FTrap.java;h=aee46255fef735910d9c5f2a2a596be365b59799;hb=cb1a5438e2216c357fdfcf53b182b78875f782ab;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..aee4625 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