/** Clears all action performers for those that has setSurviveFocusChange * on true. */ private static void clearActionPerformers() { List<CallbackSystemAction> actions = toInstances(notSurviving); // clear the performers out of any loop for (CallbackSystemAction a : actions) { a.setActionPerformer(null); } actions = toInstances(surviving); // clear the performers out of any loop for (CallbackSystemAction a : actions) { if (err.isLoggable(Level.FINE)) { err.fine("updateEnabled: " + a); // NOI18N } a.updateEnabled(); } }
/** Clears all action performers for those that has setSurviveFocusChange * on true. */ private static void clearActionPerformers() { List<CallbackSystemAction> actions = toInstances(notSurviving); // clear the performers out of any loop for (CallbackSystemAction a : actions) { a.setActionPerformer(null); } actions = toInstances(surviving); // clear the performers out of any loop for (CallbackSystemAction a : actions) { if (err.isLoggable(Level.FINE)) { err.fine("updateEnabled: " + a); // NOI18N } a.updateEnabled(); } }
public void focusLost(FocusEvent ev) { if (csa != null && (csa.getActionPerformer() instanceof PopupSupport)) { csa.setActionPerformer(null); } } }
public void focusLost(FocusEvent ev) { if (csa != null && (csa.getActionPerformer() instanceof PopupSupport)) { csa.setActionPerformer(null); } } }
/** Clears all action performers for those that has setSurviveFocusChange * on true. */ private static void clearActionPerformers () { ArrayList actions = toInstances (notSurviving); // clear the performers out of any loop Iterator it = actions.iterator (); while (it.hasNext ()) { CallbackSystemAction a = (CallbackSystemAction)it.next (); a.setActionPerformer (null); } actions = toInstances (surviving); // clear the performers out of any loop it = actions.iterator (); while (it.hasNext ()) { CallbackSystemAction a = (CallbackSystemAction)it.next (); a.updateEnabled (); } }
/** Clears all action performers for those that has setSurviveFocusChange * on true. */ private static void clearActionPerformers () { ArrayList actions = toInstances (notSurviving); // clear the performers out of any loop Iterator it = actions.iterator (); while (it.hasNext ()) { CallbackSystemAction a = (CallbackSystemAction)it.next (); a.setActionPerformer (null); } actions = toInstances (surviving); // clear the performers out of any loop it = actions.iterator (); while (it.hasNext ()) { CallbackSystemAction a = (CallbackSystemAction)it.next (); a.updateEnabled (); } }
public void focusGained(FocusEvent ev) { if (csa == null) { try { Class popup = Class.forName("org.openide.actions.PopupAction"); // NOI18N csa = (CallbackSystemAction) CallbackSystemAction.get(popup); } catch (ClassNotFoundException e) { Error err = new NoClassDefFoundError(); ErrorManager.getDefault ().annotate(err, e); throw err; } } csa.setActionPerformer(this); //ev.consume(); }
public void focusGained(FocusEvent ev) { if (csa == null) { try { Class popup = Class.forName("org.openide.actions.PopupAction"); // NOI18N csa = (CallbackSystemAction) CallbackSystemAction.get(popup); } catch (ClassNotFoundException e) { Error err = new NoClassDefFoundError(); ErrorManager.getDefault ().annotate(err, e); throw err; } } csa.setActionPerformer(this); //ev.consume(); }
/** Clears all action performers for those that has setSurviveFocusChange * on true. */ private static void clearActionPerformers() { List<CallbackSystemAction> actions = toInstances(notSurviving); // clear the performers out of any loop for (CallbackSystemAction a : actions) { a.setActionPerformer(null); } actions = toInstances(surviving); // clear the performers out of any loop for (CallbackSystemAction a : actions) { if (err.isLoggable(Level.FINE)) { err.fine("updateEnabled: " + a); // NOI18N } a.updateEnabled(); } }
/** Clears all action performers for those that has setSurviveFocusChange * on true. */ private static void clearActionPerformers() { List<CallbackSystemAction> actions = toInstances(notSurviving); // clear the performers out of any loop for (CallbackSystemAction a : actions) { a.setActionPerformer(null); } actions = toInstances(surviving); // clear the performers out of any loop for (CallbackSystemAction a : actions) { if (err.isLoggable(Level.FINE)) { err.fine("updateEnabled: " + a); // NOI18N } a.updateEnabled(); } }