public class CloseStoreAction extends org.eclipse.jface.action.Action implements IModelListener
Close store action will also close all the corresponding child objects of this store such as customer, order, quote and tickler editors.
Clients can get an instance of this action as follows :
IAction action = TelesalesActionFactory.getAction(TelesalesActionFactory.CLOSE_STORE_ACTION); if (action != null) { action.run(); }
Constructor and Description |
---|
CloseStoreAction()
Default constructor for CloseStoreAction.
|
Modifier and Type | Method and Description |
---|---|
protected void | closeOpenTicklerEditors(Store openStore)
This method closes any open tickler editors for the selected open store.
|
boolean | getActionCanceled()
This method returns true if this action gets canceled by the user.
|
java.lang.String | getHelpId()
This method gets the help ID.
|
void | modelChanged(ModelObjectChangedEvent event)
The CloseStoreAction implementation sets the enablement state.
|
void | run()
This method does the following: Invokes remove customer action (by invoking TelesalesActionFactory.REMOVE_CUSTOMER_ACTION).
|
void | setActionCanceled(boolean actionCanceled)
This method sets the state of the action canceled flag.
|
public CloseStoreAction()
This constructor sets the visible properties of the action such as action text, ToolTip text, description and enabled/disabled image.
public void modelChanged(ModelObjectChangedEvent event)
public java.lang.String getHelpId()
public boolean getActionCanceled()
public void setActionCanceled(boolean actionCanceled)
public void run()
protected void closeOpenTicklerEditors(Store openStore)
Subclass may override this method.