当前页面:
在线文档首页 >
NetBeans API Javadoc 4.1.0
ContextAwareAction (NetBeans APIs) - NetBeans API Javadoc 4.1.0
org.openide.util
Interface ContextAwareAction
- All Superinterfaces:
- Action, ActionListener, EventListener
- All Known Implementing Classes:
- CallbackSystemAction, NodeAction, ToolsAction
- public interface ContextAwareAction
- extends Action
Interface which is supposed to be implemented by action which behaviour
is context dependent.
It means the created action (by method createContextAwareInstance(org.openide.util.Lookup)
is valid to the provided context, i.e. enablement status
and action performation is related to the context
(provided by the Lookup
).
The context is typically TopComponent
S context.
- Since:
- 3.29
- See Also:
TopComponent.getLookup()
,
Utilities.actionsToPopup(javax.swing.Action[], org.openide.util.Lookup)
createContextAwareInstance
public Action createContextAwareInstance(Lookup actionContext)
- Creates action instance for provided context.