public class DropAssociationAction
extends org.eclipse.jface.action.Action
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field
|
Constructor and Description |
---|
DropAssociationAction() |
Modifier and Type | Method and Description |
---|---|
void | doAddOnlyAssociation(Association association)
This method adds the association to the sales container.
|
void | doAddReplaceAssociation(Association association)
This method either adds or replaces the association in the target.
|
protected void | doAssociationDrop(Association association)
This method notifies that the dragged association wishes to be dropped into the sales container editor.
|
void | doReplaceOnlyAssociation(Association association)
This method replaces an item with the input association.
|
protected Association | getAssociationToDrop()
This method returns the association from input properties to drop in target.
|
protected Line[] | getLineItems(Line[] items, java.lang.String productId)
This method returns an array of items whose product is equal to the given product.
|
void | run()
This method implements the run method from IAction interface to perform the association drop task.
|
public static final java.lang.String COPYRIGHT
public void run()
protected void doAssociationDrop(Association association)
The SalesContainerEditorDropAdaptor default implementation handles UPSELL, DOWNSELL, ACCESSORY, CROSSSELL and REPLACEMENT types of associations.
To support custom associations, override this method and the extended method should call super.doAssociationDrop method if the default handling is desired.
public void doAddReplaceAssociation(Association association)
public void doAddOnlyAssociation(Association association)
public void doReplaceOnlyAssociation(Association association)
protected Line[] getLineItems(Line[] items, java.lang.String productId)
protected Association getAssociationToDrop()