Package ro.sync.ecss.extensions.dita.map
Class DITAMapExtensionsBundle
java.lang.Object
ro.sync.ecss.extensions.api.ExtensionsBundle
ro.sync.ecss.extensions.dita.DITAExtensionsBundle
ro.sync.ecss.extensions.dita.map.DITAMapExtensionsBundle
- All Implemented Interfaces:
ContextKeyManagerProvider
,Extension
DITA Map extensions bundle
-
Field Summary
Fields inherited from class ro.sync.ecss.extensions.dita.DITAExtensionsBundle
keyManager, keyManagerProvider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns theAuthorExtensionStateListener
which will be notified when the Author extension where it is defined is activated and deactivated during the detection process.Returns theAuthorPreloadProcessor
which will be notified before the document is presented in the application.Creates a newAuthorReferenceResolver
instance used to expand content references.A custom implementation to handle editing properties of an author node.Creates a newElementLocatorProvider
instance responsible for providing an implementation of anElementLocator
based on the structure of a link.Create a handler which gets notified when external resources need to be inserted in the Author page.Create a handler which gets notified when external resources need to be inserted in the Text page.If Schema Aware mode is active in Oxygen, all actions that can generate invalid content will be redirected toward this support.Get theAuthorTableOperationsHandler
instance responsible for handling table operations.getHelpPageID
(String currentEditorPage) Get the help page ID for this particular framework extensions bundle.Methods inherited from class ro.sync.ecss.extensions.dita.DITAExtensionsBundle
createAuthorTableCellSepProvider, createAuthorTableCellSpanProvider, createAuthorTableColumnWidthProvider, createContextKeyManager, createIDTypeRecognizer, createLinkTextResolver, createSchemaManagerFilter, createXMLNodeCustomizer, customizeImageTooltipDescription, customizeLinkTooltipDescription, getAuthorActionEventHandler, getAuthorImageDecorator, getClipboardFragmentProcessor, getContextKeyManager, getDescription, getDocumentTypeID, getKeyManager, getProfilingConditionalTextProvider, getSpellCheckerHelper, getUniqueAttributesIdentifier, isContentReference, resolveCustomAttributeValue, resolveCustomHref
Methods inherited from class ro.sync.ecss.extensions.api.ExtensionsBundle
createAttributesValueEditor, createAuthorAWTDndListener, createAuthorBreadCrumbCustomizer, createAuthorOutlineCustomizer, createAuthorStylesFilter, createAuthorSWTDndListener, createCustomAttributeValueEditor, createTextSWTDndListener, getDocumentTypeName, getWebappExtensionsProvier, resolveCustomHref, resolveCustomHref, setDocumentTypeName
-
Constructor Details
-
DITAMapExtensionsBundle
public DITAMapExtensionsBundle()
-
-
Method Details
-
createAuthorExtensionStateListener
Description copied from class:ExtensionsBundle
Returns theAuthorExtensionStateListener
which will be notified when the Author extension where it is defined is activated and deactivated during the detection process. This method is called each time the Document Type association where the Author extension and the extensions bundle are defined matches a document opened in an Author page.- Overrides:
createAuthorExtensionStateListener
in classDITAExtensionsBundle
- Returns:
- A new
AuthorExtensionStateListener
instance. - See Also:
-
createAuthorPreloadProcessor
Description copied from class:ExtensionsBundle
Returns theAuthorPreloadProcessor
which will be notified before the document is presented in the application.- Overrides:
createAuthorPreloadProcessor
in classExtensionsBundle
- Returns:
- A new
AuthorPreloadProcessor
instance. - See Also:
-
createAuthorReferenceResolver
Description copied from class:ExtensionsBundle
Creates a newAuthorReferenceResolver
instance used to expand content references. The method is called each time an opened document in an Author editor page matches the document type association where the extensions bundle is defined.- Overrides:
createAuthorReferenceResolver
in classDITAExtensionsBundle
- Returns:
- A new
AuthorReferenceResolver
instance. - See Also:
-
createExternalObjectInsertionHandler
Description copied from class:ExtensionsBundle
Create a handler which gets notified when external resources need to be inserted in the Author page. The usual usage for this is to get notified when URLs are dropped from the project or DITA Maps manager in the Author page.- Overrides:
createExternalObjectInsertionHandler
in classDITAExtensionsBundle
- Returns:
- The External URLs handler
- See Also:
-
createElementLocatorProvider
Description copied from class:ExtensionsBundle
Creates a newElementLocatorProvider
instance responsible for providing an implementation of anElementLocator
based on the structure of a link. TheElementLocator
is capable of locating an element pointed by the supplied link. This method is called each time an element needs to be located based on a link specification.- Overrides:
createElementLocatorProvider
in classDITAExtensionsBundle
- Returns:
- A new
ElementLocatorProvider
instance. - See Also:
-
getAuthorTableOperationsHandler
Description copied from class:ExtensionsBundle
Get theAuthorTableOperationsHandler
instance responsible for handling table operations.- Overrides:
getAuthorTableOperationsHandler
in classDITAExtensionsBundle
- Returns:
- Author table operations handler.
- See Also:
-
createEditPropertiesHandler
Description copied from class:ExtensionsBundle
A custom implementation to handle editing properties of an author node. For example when a user double clicks on an element tag we will invoke this extension and a specific dialog can be presented.- Overrides:
createEditPropertiesHandler
in classDITAExtensionsBundle
- Returns:
- An implementation that can edit the properties of nodes.
- See Also:
-
createTextPageExternalObjectInsertionHandler
Description copied from class:ExtensionsBundle
Create a handler which gets notified when external resources need to be inserted in the Text page. The usual usage for this is to get notified when URLs are dropped from the project or DITA Maps manager in the Text page.- Overrides:
createTextPageExternalObjectInsertionHandler
in classDITAExtensionsBundle
- Returns:
- The External URLs handler
- See Also:
-
getHelpPageID
Description copied from class:ExtensionsBundle
Get the help page ID for this particular framework extensions bundle. If the returned help page ID is an URL, a web browser will be opened pointing to that URL when the user presses F1 in the dialog or when using the Help button. If the returned help page ID is an identifier, when help is invoked, the application will open the Oxygen User's Manual and locate this identifier inside it.- Overrides:
getHelpPageID
in classDITAExtensionsBundle
- Parameters:
currentEditorPage
- The current editor page mode (Text/Grid/Author/Schema), one of the constants in the "ro.sync.exml.editor.EditorPageConstants" interface.- Returns:
- The help page ID, by default no help page ID is returned.
- See Also:
-
getAuthorSchemaAwareEditingHandler
Description copied from class:ExtensionsBundle
If Schema Aware mode is active in Oxygen, all actions that can generate invalid content will be redirected toward this support. The support can either resolve a specific case, let the default implementation take place or reject the edit entirely by throwing anInvalidEditException
. It is recommended to extend classAuthorSchemaAwareEditingHandlerAdapter
in order to be protected from any API additions that may occur in interfaceAuthorSchemaAwareEditingHandler
.- Overrides:
getAuthorSchemaAwareEditingHandler
in classDITAExtensionsBundle
- Returns:
- A custom editing handler for schema aware actions, or null if there is no handler and the default processing should take place.
- See Also:
-