package bluej.debugmgr.objectbench;

import java.awt.event.ActionEvent;

import javax.swing.AbstractAction;

import bluej.views.MethodView;
import javafx.application.Platform;
import threadchecker.OnThread;
import threadchecker.Tag;


| Simple action representing an interactive method invocation. | | @author Davin McCall | @version $Id: InvokeAction.java 6215 2009-03-30 13:28:25Z polle $ | @OnThread(Tag.Swing) public class InvokeAction extends AbstractAction{ @OnThread(Tag.Any) private final MethodView methodView; @OnThread(Tag.Any) private final InvokeListener invokeListener;
| Constructor for an InvokeAction. | | @param methodView The method to be invoked | @param il The listener to be notified | @param desc The method description (as appearing on menu) | public InvokeAction(MethodView methodView, InvokeListener il, String desc) { super(desc); this.methodView = methodView; this.invokeListener = il; }
| (non-Javadoc) | @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent) | public void actionPerformed(ActionEvent e) { Platform.runLater(() -> invokeListener.executeMethod(methodView)); } }
top, use, map, class InvokeAction

.   InvokeAction
.   actionPerformed




38 neLoCode + 9 LoComm