public class CancelReturnAction
extends org.eclipse.jface.action.Action
Constructor and Description |
---|
CancelReturnAction()
Creates a new CancelReturnAction.
|
CancelReturnAction(org.eclipse.ui.IEditorPart editor)
Creates a new CancelReturnAction.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String | getActionDefinitionId()
This method returns the command ID as declared in the plugin.xml Value of the ID is "com.ibm.commerce.telesales.ui.cancelReturnCommand"
|
protected TelesalesProperties | getCancelReturnParameters()
This method constructs the parameters for the "com.ibm.commerce.telesales.cancelReturn" telesales action.
|
org.eclipse.ui.IEditorPart | getCurrentEditor()
This method returns the editor part reference
|
java.lang.String | getHelpContextId()
This method returns the Help context id.
|
java.lang.String | getId()
This method returns the TelesalesActionFactory Action identifier
|
protected void | resetAction()
This method resets the attributes of this action.
|
void | run()
This method overrides the run() method of the parent class to implement the logic to cancel the return.
|
void | setCurrentEditor(org.eclipse.ui.IEditorPart editor)
This method sets the editor part reference
|
public CancelReturnAction()
public CancelReturnAction(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()
Pops up a message asking the user to confirm the cancel action and if the user confirms, sends the com.ibm.commerce.telesales.cancelReturn request to the server.
protected TelesalesProperties getCancelReturnParameters()
protected void resetAction()