Source code: javax/ide/command/InvokeHandler.java
1 package javax.ide.command;
2
3 import javax.ide.menu.IDEAction;
4
5 /**
6 * <tt>InvokeHandler</tt>s are responsible for performing an action in a
7 * specific context.
8 */
9 public interface InvokeHandler
10 {
11 /**
12 * Invoke the specified action in the specified context.
13 *
14 * @param action the action to invoke.
15 * @param context the context in which to invoke the action.
16 *
17 * @return true if the action was invoked by this handler.
18 */
19 boolean invoke( IDEAction action, Context context );
20 }