@API(type=INTERNAL, src=PUBLIC) public abstract class UpdateImageMapOperationBase extends java.lang.Object implements AuthorOperation
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ARGUMENT_SHAPES
An SVG with the shapes to be used to update the Image Map at caret.
|
protected static ArgumentDescriptor[] |
ARGUMENTS
The arguments descriptor.
|
NAMESPACE_ARGUMENT, NAMESPACE_ARGUMENT_DESCRIPTOR, SCHEMA_AWARE_ARGUMENT, SCHEMA_AWARE_ARGUMENT_DESCRIPTOR
Constructor and Description |
---|
UpdateImageMapOperationBase() |
Modifier and Type | Method and Description |
---|---|
void |
doOperation(AuthorAccess authorAccess,
ArgumentsMap args)
Perform the actual operation.
|
ArgumentDescriptor[] |
getArguments() |
java.lang.String |
getDescription() |
protected abstract SupportedFrameworks |
getSupportedFramework()
Get the supported framework.
|
protected abstract void |
mergeImageMaps(AuthorDocumentController controller,
AuthorElement currentImageMap,
org.w3c.dom.Document newMapDOM)
Merge image maps.
|
public static final java.lang.String ARGUMENT_SHAPES
protected static final ArgumentDescriptor[] ARGUMENTS
public java.lang.String getDescription()
getDescription
in interface Extension
Extension.getDescription()
public void doOperation(AuthorAccess authorAccess, ArgumentsMap args) throws AuthorOperationException
AuthorOperation
ApplicationInformationAccess.getPlatform()
.
To get to the Workspace
you may use: AuthorAccess.getWorkspaceAccess()
.doOperation
in interface AuthorOperation
authorAccess
- The author access.
Provides access to specific informations and actions for
editor, document, workspace, tables, change tracking, utility a.s.o.args
- The map of arguments. All the arguments defined by method
AuthorOperation.getArguments()
must be present in the map of arguments.AuthorOperationException
- Thrown when the operation fails.AuthorOperation.doOperation(ro.sync.ecss.extensions.api.AuthorAccess, ro.sync.ecss.extensions.api.ArgumentsMap)
protected abstract void mergeImageMaps(AuthorDocumentController controller, AuthorElement currentImageMap, org.w3c.dom.Document newMapDOM) throws AuthorOperationException
controller
- The document controller.currentImageMap
- The original map element.newMapDOM
- The new map fragment.AuthorOperationException
protected abstract SupportedFrameworks getSupportedFramework()
public ArgumentDescriptor[] getArguments()
getArguments
in interface AuthorOperation
ArgumentDescriptor
representing
the arguments this operation uses.AuthorOperation.getArguments()
© Copyright Syncro Soft SRL 2002 - 2021. All rights reserved.