@API(type=EXTENDABLE, src=PUBLIC) public abstract class ExtensionsBundle extends java.lang.Object implements Extension
Constructor and Description |
---|
ExtensionsBundle() |
Modifier and Type | Method and Description |
---|---|
AttributesValueEditor |
createAttributesValueEditor(boolean forEclipsePlugin)
Creates a new
AttributesValueEditor instance used to get values for the current
attribute. |
AuthorDnDListener |
createAuthorAWTDndListener()
Creates a new
AuthorDnDListener instance
responsible for handling AWT author drag and drop events. |
AuthorBreadCrumbCustomizer |
createAuthorBreadCrumbCustomizer()
Create an Author Bread Crumb customizer used for nodes rendering in the Bread Crumb
(components path which appears in the top of the Author editor).
|
AuthorExtensionStateListener |
createAuthorExtensionStateListener()
Returns the
AuthorExtensionStateListener which will be notified
when the Author extension where it is defined is activated and deactivated
during the detection process. |
AuthorOutlineCustomizer |
createAuthorOutlineCustomizer()
Create an Author Outline customizer used for custom filtering and nodes rendering in the Outline.
|
AuthorReferenceResolver |
createAuthorReferenceResolver()
Creates a new
AuthorReferenceResolver instance used to expand
content references. |
StylesFilter |
createAuthorStylesFilter()
Creates a new
StylesFilter instance for the CSS styles filtering. |
AuthorDnDListener |
createAuthorSWTDndListener()
Creates a new
AuthorDnDListener instance
responsible for handling SWT author drag and drop events. |
AuthorTableCellSepProvider |
createAuthorTableCellSepProvider()
Creates a new
AuthorTableCellSepProvider instance
responsible for providing information about the table cells painting
their separators. |
AuthorTableCellSpanProvider |
createAuthorTableCellSpanProvider()
Creates a new
AuthorTableCellSpanProvider instance
responsible for providing information about the table cells spanning. |
AuthorTableColumnWidthProvider |
createAuthorTableColumnWidthProvider()
Creates a new
AuthorTableColumnWidthProvider instance
responsible for providing information and for handling modifications
regarding table width and column widths. |
CustomAttributeValueEditor |
createCustomAttributeValueEditor(boolean forEclipsePlugin)
Creates a new
CustomAttributeValueEditor instance used to get values for the current
attribute. |
EditPropertiesHandler |
createEditPropertiesHandler()
A custom implementation to handle editing properties of an author node.
|
ElementLocatorProvider |
createElementLocatorProvider()
Creates a new
ElementLocatorProvider instance responsible
for providing an implementation of an ElementLocator
based on the structure of a link. |
AuthorExternalObjectInsertionHandler |
createExternalObjectInsertionHandler()
Create a handler which gets notified when external resources need to be inserted in the Author page.
|
IDTypeRecognizer |
createIDTypeRecognizer()
Creates a new
IDTypeRecognizer instance responsible
for providing an implementation which can recognize ID declarations and references. |
LinkTextResolver |
createLinkTextResolver()
Creates a new
LinkTextResolver instance responsible for resolving a
specific link marked in the CSS file and returning a text content from the
targeted location. |
SchemaManagerFilter |
createSchemaManagerFilter()
Creates a new
SchemaManagerFilter instance used to filter
the content completion proposals from the schema manager. |
TextDnDListener |
createTextSWTDndListener()
Creates a new
TextDnDListener instance
responsible for handling SWT text drag and drop events. |
XMLNodeRendererCustomizer |
createXMLNodeCustomizer()
Create an XML node customizer used for custom nodes rendering in the Author outline, Text page outline,
Author bread crumb, content completion window or the DITA Map view.
|
AuthorActionEventHandler |
getAuthorActionEventHandler()
Creates a special handler for author actions events (such as key events).
|
AuthorImageDecorator |
getAuthorImageDecorator()
Get an
AuthorImageDecorator . |
AuthorSchemaAwareEditingHandler |
getAuthorSchemaAwareEditingHandler()
If Schema Aware mode is active in Oxygen, all actions that can generate invalid content will be redirected toward
this support.
|
AuthorTableOperationsHandler |
getAuthorTableOperationsHandler()
Get the
AuthorTableOperationsHandler instance
responsible for handling table operations. |
ClipboardFragmentProcessor |
getClipboardFragmentProcessor()
Get a processor for Author Document Fragments in the clipboard (which will be pasted, dropped, etc).
|
abstract java.lang.String |
getDocumentTypeID()
This should never return
null if the OptionsStorage
support it is intended to be used. |
java.lang.String |
getDocumentTypeName()
Get the name of the document type which created this bundle (as set in the Oxygen -> Preferences -> Document Types.
|
java.lang.String |
getHelpPageID(java.lang.String currentEditorPage)
Get the help page ID for this particular framework extensions bundle.
|
ProfilingConditionalTextProvider |
getProfilingConditionalTextProvider()
Creates a new
ProfilingConditionalTextProvider instance responsible
for providing custom support regarding profiling and conditional text. |
UniqueAttributesRecognizer |
getUniqueAttributesIdentifier()
Get an unique attributes creator and identifier.
|
boolean |
isContentReference(AuthorNode node)
Check if this node references another node which should replace it entirely.
|
java.net.URL |
resolveCustomHref(java.lang.String linkHref)
When clicking a href the bundle can custom solve the href to an URL.
|
java.net.URL |
resolveCustomHref(java.net.URL currentEditorURL,
AuthorNode contextNode,
java.lang.String linkHref,
AuthorAccess authorAccess)
When clicking a href the bundle can custom solve the href to an URL.
|
java.net.URL |
resolveCustomHref(java.net.URL currentEditorURL,
java.lang.String linkHref,
AuthorAccess authorAccess)
When clicking a href the bundle can custom solve the href to an URL.
|
void |
setDocumentTypeName(java.lang.String documentTypeName)
Set the name of the document type which created this bundle.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDescription
public AuthorReferenceResolver createAuthorReferenceResolver()
AuthorReferenceResolver
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.AuthorReferenceResolver
instance.public StylesFilter createAuthorStylesFilter()
Creates a new StylesFilter
instance for the CSS styles filtering.
Use this to replace the default styles associated to a node form the document object model,
or the styles of the pseudo elements :before
and :after
.
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.
StylesFilter
instance, or null
.public AuthorTableCellSpanProvider createAuthorTableCellSpanProvider()
AuthorTableCellSpanProvider
instance
responsible for providing information about the table cells spanning.
The table cell span provider is not reused between different tables.
The method is called for each table in the document so a new instance
should be provided each time.AuthorTableCellSpanProvider
instance.public AuthorTableColumnWidthProvider createAuthorTableColumnWidthProvider()
AuthorTableColumnWidthProvider
instance
responsible for providing information and for handling modifications
regarding table width and column widths.
The table column width provider is not reused between different tables.
The method is called for each table in the document so a new instance
should be provided each time.AuthorTableColumnWidthProvider
instance.public AuthorTableCellSepProvider createAuthorTableCellSepProvider()
AuthorTableCellSepProvider
instance
responsible for providing information about the table cells painting
their separators.
The table cell separators provider is not reused between different tables.
The method is called for each table in the document so a new instance
should be provided each time.AuthorTableCellSepProvider
instance.public AuthorTableOperationsHandler getAuthorTableOperationsHandler()
AuthorTableOperationsHandler
instance
responsible for handling table operations.public AuthorExtensionStateListener createAuthorExtensionStateListener()
AuthorExtensionStateListener
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.AuthorExtensionStateListener
instance.public AuthorDnDListener createAuthorAWTDndListener()
AuthorDnDListener
instance
responsible for handling AWT author drag and drop events.
This method is called each time the Document Type association where
the extensions bundle is defined matches a document opened in an Author page.public AuthorDnDListener createAuthorSWTDndListener()
AuthorDnDListener
instance
responsible for handling SWT author drag and drop events.
This method is called each time the Document Type association where
the extensions bundle is defined matches a document opened in an Author page.public TextDnDListener createTextSWTDndListener()
TextDnDListener
instance
responsible for handling SWT text drag and drop events.
This method is called each time the Document Type association where
the extensions bundle is defined matches a document opened in a Text page.public ElementLocatorProvider createElementLocatorProvider()
ElementLocatorProvider
instance responsible
for providing an implementation of an ElementLocator
based on the structure of a link. The ElementLocator
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.ElementLocatorProvider
instance.public IDTypeRecognizer createIDTypeRecognizer()
IDTypeRecognizer
instance responsible
for providing an implementation which can recognize ID declarations and references.
This method is called each time an ID must be recognized or certain ID-aware searches or refactory actions are performed.IDTypeRecognizer
instance.public SchemaManagerFilter createSchemaManagerFilter()
SchemaManagerFilter
instance used to filter
the content completion proposals from the schema manager.
This method is called each time the document type where the extensions bundle
is defined matches a document opened in an editor.SchemaManagerFilter
instance.public AttributesValueEditor createAttributesValueEditor(boolean forEclipsePlugin)
AttributesValueEditor
instance used to get values for the current
attribute.
This is used especially from the "Attributes View" and from attributes editing dialogs
available on Author mode and Outliner.forEclipsePlugin
- If true
the code is called from the Eclipse plugin.AttributesValueEditor
instance.public CustomAttributeValueEditor createCustomAttributeValueEditor(boolean forEclipsePlugin)
CustomAttributeValueEditor
instance used to get values for the current
attribute.
This is used especially from the "Attributes View" and from attributes editing dialogs
available on Author mode and Outliner.forEclipsePlugin
- If true
the code is called from the Eclipse plugin.CustomAttributeValueEditor
instance.public UniqueAttributesRecognizer getUniqueAttributesIdentifier()
public ClipboardFragmentProcessor getClipboardFragmentProcessor()
public abstract java.lang.String getDocumentTypeID()
null
if the OptionsStorage
support it is intended to be used.
If this returns null
you will not be able to add
OptionListener
or store and retrieve
any options at all.public java.net.URL resolveCustomHref(java.lang.String linkHref) throws java.io.IOException
linkHref
- The link href as derrived from the CSSjava.io.IOException
- If the link is recognized by the extensions bundle, but could not be mapped
to an URL.public java.net.URL resolveCustomHref(java.net.URL currentEditorURL, java.lang.String linkHref, AuthorAccess authorAccess) throws java.io.IOException
currentEditorURL
- The URL of the current editor.linkHref
- The link href as derrived from the CSSauthorAccess
- The Author Access.java.io.IOException
- If the link is recognized by the extensions bundle, but could not be mapped
to an URL.public java.net.URL resolveCustomHref(java.net.URL currentEditorURL, AuthorNode contextNode, java.lang.String linkHref, AuthorAccess authorAccess) throws CustomResolverException, java.io.IOException
currentEditorURL
- The URL of the current editor.contextNode
- The context node in which the href needs to be computed.linkHref
- The link href as derrived from the CSSauthorAccess
- The Author Access.CustomResolverException
- If the link is recognized by the extensions bundle, but could not be mapped
to an URL. It offers a solution to the user. This solution
is invoked when the user clicks on the error message.java.io.IOException
- If the link is recognized by the extensions bundle, but could not be mapped
to an URL.public AuthorOutlineCustomizer createAuthorOutlineCustomizer()
public AuthorBreadCrumbCustomizer createAuthorBreadCrumbCustomizer()
public AuthorSchemaAwareEditingHandler getAuthorSchemaAwareEditingHandler()
InvalidEditException
.
It is recommended to extend class AuthorSchemaAwareEditingHandlerAdapter
in order to be protected from any
API additions that may occur in interface AuthorSchemaAwareEditingHandler
.public AuthorExternalObjectInsertionHandler createExternalObjectInsertionHandler()
public java.lang.String getDocumentTypeName()
public void setDocumentTypeName(java.lang.String documentTypeName)
documentTypeName
- The name of the document type which created this bundlepublic boolean isContentReference(AuthorNode node)
node
- The nodetrue
if this node references another node which should replace it entirely.public ProfilingConditionalTextProvider getProfilingConditionalTextProvider()
ProfilingConditionalTextProvider
instance responsible
for providing custom support regarding profiling and conditional text.ProfilingConditionalTextProvider
instance.public XMLNodeRendererCustomizer createXMLNodeCustomizer()
public LinkTextResolver createLinkTextResolver()
LinkTextResolver
instance responsible for resolving a
specific link marked in the CSS file and returning a text content from the
targeted location. This text content will be presented as a static text
associated with the link in author page.
This resolver will be used when function oxy_link-text() is encountered
inside the CSS rules on the 'content' property.LinkTextResolver
instance.public EditPropertiesHandler createEditPropertiesHandler()
public AuthorActionEventHandler getAuthorActionEventHandler()
Please note that this API is not marked as final and it can change in one of the next versions of the application. If you have suggestions, comments about it, please let us know.
public AuthorImageDecorator getAuthorImageDecorator()
AuthorImageDecorator
. Permits decoration of the images that
are displayed in the Author view. For instance it can overlay some meta-information
over the image.AuthorImageDecorator
, or null
.Please note that this API is not marked as final and it can change in one of the next versions of the application. If you have suggestions, comments about it, please let us know.
public java.lang.String getHelpPageID(java.lang.String currentEditorPage)
currentEditorPage
- The current editor page mode (Text/Grid/Author/Schema), one of the constants in the "ro.sync.exml.editor.EditorPageConstants" interface.Please note that this API is not marked as final and it can change in one of the next versions of the application. If you have suggestions, comments about it, please let us know.
HelpPageProvider.getHelpPageID()
© Copyright SyncRO Soft SRL 2002 - 2016. All rights reserved.