public class ProductCompareEditorInput
extends java.lang.Object
implements org.eclipse.ui.IEditorInput
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field
|
Constructor and Description |
---|
ProductCompareEditorInput(java.lang.Object activeMember, java.util.ArrayList products)
Constructor for ProductCompareEditor.
|
ProductCompareEditorInput(java.lang.Object activeMember, java.util.ArrayList products, Store store)
Constructor for ProductCompareEditor.
|
Modifier and Type | Method and Description |
---|---|
boolean | exists()
This method returns whether the editor input exists.
|
java.lang.Object | getAdapter(java.lang.Class adapter)
This method returns an object which is an instance of the given class associated with this object.
|
java.lang.Object | getData()
This method returns a data object.
|
org.eclipse.jface.resource.ImageDescriptor | getImageDescriptor()
This method returns the image descriptor for this input.
|
java.lang.Object | getMember()
This method returns the member.
|
java.lang.String | getName()
This method returns the name of this editor input for display purposes.
|
org.eclipse.ui.IPersistableElement | getPersistable()
This method returns an object that can be used to save the state of this editor input.
|
java.util.ArrayList | getProductsToCompare()
This method returns the list of products that wanted to be compared.
|
java.lang.Object | getStore()
This method retrieves the store object.
|
java.lang.String | getToolTipText()
This method returns the tool tip text for this editor input.
|
void | setData(java.lang.Object object)
This method sets a data object.
|
void | setMember(java.lang.Object member)
This method sets the member.
|
void | setProductsToCompare(java.util.ArrayList products)
This method sets the list of products to be compared.
|
void | setStore(java.lang.Object store)
This method sets the store object.
|
public static final java.lang.String COPYRIGHT
public ProductCompareEditorInput(java.lang.Object activeMember, java.util.ArrayList products)
public ProductCompareEditorInput(java.lang.Object activeMember, java.util.ArrayList products, Store store)
public boolean exists()
public org.eclipse.jface.resource.ImageDescriptor getImageDescriptor()
public java.lang.String getName()
public org.eclipse.ui.IPersistableElement getPersistable()
public java.lang.String getToolTipText()
public java.lang.Object getAdapter(java.lang.Class adapter)
This implementation returns the Customer or Operator depending on for whom the Product Compare was performed. As such it will only accept Customer.class or Operator.class as parameters. If it cannot find a Customer or Operator associated with the editor input it returns null.
public java.lang.Object getData()
public void setData(java.lang.Object object)
public java.util.ArrayList getProductsToCompare()
public void setProductsToCompare(java.util.ArrayList products)
public java.lang.Object getMember()
public void setMember(java.lang.Object member)
public java.lang.Object getStore()
public void setStore(java.lang.Object store)