Package com.iizigo.link.vs
Class LopVSAction
- java.lang.Object
- com.iizigo.link.vs.LopVSAction
- All Implemented Interfaces:
ILinkOperation
public class LopVSAction extends java.lang.Object implements ILinkOperation
The link operation linking VSAction using a VSActionReference for a property container that implements IVSActionListener.- Author:
- Christopher Mindus
Constructor Summary
Constructors Constructor Description LopVSAction(VSAction target, PropCnr owner, Atom atom)
Constructor.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ItemNavigatorPresentation
createOperationNode(ItemNavigatorPresentation parent)
Creates the operation node for presentation in the link wizard main page.boolean
equalsOp(ILinkOperation op)
Checks if two operations are equal.org.eclipse.core.runtime.IStatus
executeOperation(ComplexOperation op)
Executes the operation.org.eclipse.core.runtime.IStatus
isOperationEnabled()
Returns if the operation is enabled for execution, regardless of any preconditions.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.iizigo.link.ILinkOperation
addPages, getDependentOperations, isOperationEnabled, isPrecondition, isSelected, isWizardDialogRequired, validateOperations
Method Detail
createOperationNode
public ItemNavigatorPresentation createOperationNode(ItemNavigatorPresentation parent)
Creates the operation node for presentation in the link wizard main page.- Specified by:
createOperationNode
in interfaceILinkOperation
- Parameters:
parent
- The parent node.- Returns:
- The node.
isOperationEnabled
public org.eclipse.core.runtime.IStatus isOperationEnabled()
Returns if the operation is enabled for execution, regardless of any preconditions. These are tested once all parties have agreed that the operation might be a "go".- Specified by:
isOperationEnabled
in interfaceILinkOperation
- Returns:
- The status for the operation.
executeOperation
public org.eclipse.core.runtime.IStatus executeOperation(ComplexOperation op)
Executes the operation.- Specified by:
executeOperation
in interfaceILinkOperation
- Parameters:
op
- The complex operation.- Returns:
- The status of the operation. A complex operation would have a
MultiStatus
return code.
equalsOp
public boolean equalsOp(ILinkOperation op)
Checks if two operations are equal.- Specified by:
equalsOp
in interfaceILinkOperation
- Parameters:
op
- Operation to compare with.- Returns:
- true if they produce the same result, false otherwise.