public void run() { a.maybeFireEnabledChange(); } });
/** Checks the state of the action. * Or rather, it just forgets it ever knew. * @param sfc if true, only survive-focus-change actions affected, else only not-s-f-c */ private void forget(boolean sfc) { List as; synchronized (listeningActions) { as = new ArrayList(listeningActions.size()); for (Iterator it = listeningActions.iterator(); it.hasNext(); ) { as.add(it.next()); } } Iterator it = as.iterator(); while (it.hasNext()) { NodeAction a = (NodeAction)it.next(); if (a.surviveFocusChange() == sfc) { a.maybeFireEnabledChange(); } } }
/** Checks the state of the action. * Or rather, it just forgets it ever knew. * @param sfc if true, only survive-focus-change actions affected, else only not-s-f-c */ private void forget(boolean sfc) { List as; synchronized (listeningActions) { as = new ArrayList(listeningActions.size()); for (Iterator it = listeningActions.iterator(); it.hasNext(); ) { as.add(it.next()); } } Iterator it = as.iterator(); while (it.hasNext()) { NodeAction a = (NodeAction)it.next(); if (a.surviveFocusChange() == sfc) { a.maybeFireEnabledChange(); } } }