@API(type=INTERNAL, src=PUBLIC) public class InsertXrefOperation extends java.lang.Object implements AuthorOperation
NAMESPACE_ARGUMENT, NAMESPACE_ARGUMENT_DESCRIPTOR, SCHEMA_AWARE_ARGUMENT, SCHEMA_AWARE_ARGUMENT_DESCRIPTOR
Constructor and Description |
---|
InsertXrefOperation()
Constructor for the XRef operation.
|
Modifier and Type | Method and Description |
---|---|
void |
doOperation(AuthorAccess authorAccess,
ArgumentsMap args)
Perform the actual operation.
|
protected void |
doOperationInternal(AuthorAccess authorAccess,
ArgumentsMap args,
boolean isXref)
Perform the operation.
|
ArgumentDescriptor[] |
getArguments()
The operation has 3 arguments:
format , type and scope . |
java.lang.String |
getDescription() |
public InsertXrefOperation()
public void doOperation(AuthorAccess authorAccess, ArgumentsMap args) throws java.lang.IllegalArgumentException, AuthorOperationException
AuthorOperation
Workspace.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.java.lang.IllegalArgumentException
- Thrown when one or more arguments are illegal.AuthorOperationException
- Thrown when the operation fails.AuthorOperation.doOperation(ro.sync.ecss.extensions.api.AuthorAccess, ro.sync.ecss.extensions.api.ArgumentsMap)
protected void doOperationInternal(AuthorAccess authorAccess, ArgumentsMap args, boolean isXref) throws AuthorOperationException
authorAccess
- The author access.args
- The map of arguments.
All the arguments defined by method
getArguments
must be present in the map.isXref
- true
if we need to insert a XRef element,
false
for link element.AuthorOperationException
- Thrown when the operation fails.public ArgumentDescriptor[] getArguments()
format
, type
and scope
.
The operation will display a dialog for choosing the XRef source and target.getArguments
in interface AuthorOperation
ArgumentDescriptor
representing
the arguments this operation uses.AuthorOperation.getArguments()
public java.lang.String getDescription()
getDescription
in interface Extension
Extension.getDescription()
© Copyright SyncRO Soft SRL 2002 - 2016. All rights reserved.