com.borland.primetime.ide
Interface ContextActionProvider
- public interface ContextActionProvider
A ContextActionProvider returns action object to be displayed in the context
menu when a user right-clicks on a node or set of nodes in the project view.
To add a ContextActionProvider to the project view, call the static method:
ProjectView.registerContextActionProvider(ContextActionProvider provider).
Method Summary |
javax.swing.Action |
getContextAction(Browser browser,
Node[] nodes)
Return an Action object (or ActionGroup) if the passed set of nodes are
'interesting'. |
getContextAction
public javax.swing.Action getContextAction(Browser browser,
Node[] nodes)
- Return an Action object (or ActionGroup) if the passed set of nodes are
'interesting'. Otherwise, return null.
- Parameters:
browser
- The browser where the right-click is occurringnodes
- The array of selected nodes being right-clicked on (this can be empty!)- Returns:
- The associated action object (or ActionGroup)