com.borland.primetime.editor
Interface EditorContextActionProvider


public interface EditorContextActionProvider

An EditorContextActionProvider returns action object to be displayed in the context menu when a user right-clicks in the editor. The action object can be a single action, or an action group. To add an EditorContextActionProvider, call the static method: EditorManager.registerContextActionProvider(EditorContextActionProvider provider).


Method Summary
 javax.swing.Action getContextAction(EditorPane editor)
          Return an Action object (or ActionGroup) if this is the right time for the user to use the action(s), otherwise return null.
 int getPriority()
          Return a priority which determines where the Action or ActionGroup will be listed in the context menu.
 

Method Detail

getContextAction

public javax.swing.Action getContextAction(EditorPane editor)
Return an Action object (or ActionGroup) if this is the right time for the user to use the action(s), otherwise return null.
Parameters:
editor - The currently focused editor.
Returns:
The associated action object (or ActionGroup) or null.

getPriority

public int getPriority()
Return a priority which determines where the Action or ActionGroup will be listed in the context menu.