Interface AuthorActionsProvider

    • Method Detail

      • getAuthorCommonActions

        java.util.Map<java.lang.String,​java.lang.Object> getAuthorCommonActions()
        Get the map of author common actions (undo, redo, cut, copy, paste, etc).
        Returns:
        The map with (action id, Action) pairs with the actions defined for working in the Author. If the standalone Oxygen implementation is used, the actions are instance of javax.swing.Action If the eclipse plugin Oxygen implementation is used, the actions are instance of org.eclipse.jface.action.Action
      • getAuthorExtensionActions

        java.util.Map<java.lang.String,​java.lang.Object> getAuthorExtensionActions()
        Get the map of author extension actions. Can be null if the author page does not have an associated document type. This should get called after each load as the extension actions depend on the loaded document type.
        Returns:
        The map with (action id, Action) pairs with the actions defined in the Author framework. Can be null if no actions available. If the standalone Oxygen implementation is used, the actions are instance of javax.swing.Action If the eclipse plugin Oxygen implementation is used, the actions are instance of org.eclipse.jface.action.Action
        Since:
        12.1
      • invokeAuthorExtensionActionInContext

        void invokeAuthorExtensionActionInContext​(java.lang.Object action,
                                                  int offset)
        If an Author extension action which was contributed in the document type configuration was obtained using one of the methods in this interface this method provides means to invoke an action on AWT thread (for the standalone distribution) or SWT thread (for the eclipse distribution) and have it executed at a certain offset. If the action is not an extension action, the method runs it without a context offset. The action will be invoked only if it is enabled in the execution context offset.
        Parameters:
        action - The action to invoke
        offset - The offset in the document where to invoke the action.
        Since:
        16