/** Perform the action. Tries the performer and then scans the ActionMap * of selected topcomponent. */ public void actionPerformed(final ActionEvent ev) { // First try global context action. final Action action = findGlobalContextAction (); if (action != null) { if (action.isEnabled()) { action.actionPerformed(ev); } else { Toolkit.getDefaultToolkit().beep(); } return; } final ActionPerformer ap = getActionPerformer (); if (ap != null) { doPerformAction(new ActionRunnable (ev) { public void run() { ap.performAction(CallbackSystemAction.this); } }); return; } Toolkit.getDefaultToolkit().beep(); }
/** Perform the action. Tries the performer and then scans the ActionMap * of selected topcomponent. */ public void actionPerformed(final ActionEvent ev) { // First try global context action. final Action action = findGlobalContextAction (); if (action != null) { if (action.isEnabled()) { action.actionPerformed(ev); } else { Toolkit.getDefaultToolkit().beep(); } return; } final ActionPerformer ap = getActionPerformer (); if (ap != null) { doPerformAction(new ActionRunnable (ev) { public void run() { ap.performAction(CallbackSystemAction.this); } }); return; } Toolkit.getDefaultToolkit().beep(); }
delegate.doPerformAction (run); } else {
delegate.doPerformAction (run); } else {