public static synchronized boolean appletShouldBlockBrowser(int paramInt) { Thread localThread = Thread.currentThread(); PerPluginInfo localPerPluginInfo = (PerPluginInfo) pluginInfoMap.get(new Integer(paramInt)); if ((localPerPluginInfo != null) && (localPerPluginInfo.getModalityDepth() > 0)) return true; Iterator localIterator = pluginInfoMap.values().iterator(); while (localIterator.hasNext()) { localPerPluginInfo = (PerPluginInfo) localIterator.next(); if ((localPerPluginInfo.getPluginMainThread() == localThread) && (localPerPluginInfo.getModalityDepth() > 0)) return true; } return false; }
public static synchronized Integer getAppletBlockingBrowser() { Thread localThread = Thread.currentThread(); Iterator localIterator = pluginInfoMap.keySet().iterator(); while (localIterator.hasNext()) { Integer localInteger = (Integer) localIterator.next(); PerPluginInfo localPerPluginInfo = (PerPluginInfo) pluginInfoMap.get(localInteger); if ((localPerPluginInfo.getPluginMainThread() == localThread) && (localPerPluginInfo.getModalityDepth() > 0)) return localInteger; } return null; }