public class CancelOrderAction
extends com.ibm.commerce.telesales.ui.impl.actions.BaseOrderAction
Constructor and Description |
---|
CancelOrderAction()
The default constructor that creates a new CancelOrderAction instance.
|
CancelOrderAction(org.eclipse.ui.IEditorPart editor)
The constructor creates a new CancelOrderAction object with Order Editor part reference that wants its Order to be cancelled, as an input parameter.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String | getActionDefinitionId()
This method returns the command identifier as declared in the plugin.xml.
|
protected TelesalesProperties | getCancelOrderParameters()
This method constructs the parameters for the "com.ibm.commerce.telesales.cancelOrder" sales centre action.
|
org.eclipse.ui.IEditorPart | getCurrentEditor()
This method returns the editor part reference.
|
java.lang.String | getHelpContextId()
This method returns the help context identifier.
|
java.lang.String | getId()
This method returns the TelesalesActionFactory action identifier.
|
protected void | postProcessOrderCancel()
This method will be called once processOrderCancelRequest is completed successfully and require any post action.
|
protected void | processOrderCancelRequest()
This method calls cancel order request to cancel an order.
|
protected void | resetAction()
This method resets the attributes of this action.
|
void | run()
This method checks to see if an editor reference was passed to this action and if so that editor's order is cancelled.
|
void | setCurrentEditor(org.eclipse.ui.IEditorPart editor)
This method sets the editor part reference.
|
public CancelOrderAction()
public CancelOrderAction(org.eclipse.ui.IEditorPart editor)
public void setCurrentEditor(org.eclipse.ui.IEditorPart editor)
public org.eclipse.ui.IEditorPart getCurrentEditor()
public java.lang.String getActionDefinitionId()
public java.lang.String getId()
public java.lang.String getHelpContextId()
public void run()
protected TelesalesProperties getCancelOrderParameters()
protected void resetAction()
protected void postProcessOrderCancel()
protected void processOrderCancelRequest()