@API(type=INTERNAL,
src=PUBLIC)
public class ToggleSurroundWithElementOperation
extends java.lang.Object
implements AuthorOperation
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ARGUMENT_ELEMENT
The element argument.
|
NAMESPACE_ARGUMENT, NAMESPACE_ARGUMENT_DESCRIPTOR, SCHEMA_AWARE_ARGUMENT, SCHEMA_AWARE_ARGUMENT_DESCRIPTOR| Constructor and Description |
|---|
ToggleSurroundWithElementOperation() |
| Modifier and Type | Method and Description |
|---|---|
void |
doOperation(AuthorAccess authorAccess,
ArgumentsMap args)
Perform the actual operation.
|
ArgumentDescriptor[] |
getArguments() |
java.lang.String |
getDescription() |
static AuthorElement[] |
getElementsPath(AuthorDocumentFragment fragment)
Given a document fragment it returns the path of elements until the first leaf.
|
static java.util.List<int[]> |
getEquiIntervalFromMarker(AuthorAccess authorAccess,
int[] interval)
If the given interval is not balanced (balanced = starts and ends in the same element) it
will be split into multiple balanced intervals.
|
public static final java.lang.String ARGUMENT_ELEMENT
public void doOperation(AuthorAccess authorAccess, ArgumentsMap args) throws AuthorOperationException
AuthorOperationWorkspace.getPlatform().
To get to the Workspace you may use: AuthorAccess.getWorkspaceAccess().doOperation in interface AuthorOperationauthorAccess - 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(AuthorAccess, ArgumentsMap)public ArgumentDescriptor[] getArguments()
getArguments in interface AuthorOperationArgumentDescriptor representing
the arguments this operation uses.AuthorOperation.getArguments()public java.lang.String getDescription()
getDescription in interface ExtensionExtension.getDescription()public static AuthorElement[] getElementsPath(AuthorDocumentFragment fragment)
fragment - The document fragment to check.public static java.util.List<int[]> getEquiIntervalFromMarker(AuthorAccess authorAccess, int[] interval) throws javax.swing.text.BadLocationException
authorAccess - Author access.interval - The interval to split..javax.swing.text.BadLocationException© Copyright SyncRO Soft SRL 2002 - 2016. All rights reserved.