org.eclipse.gmt.umlx.mm.editor.regimes
Class E2AssociationDomainProvider

java.lang.Object
  extended by org.eclipse.gmt.umlx.editor.property.domains.AbstractDomainProvider<E2DirectedAssociation>
      extended by org.eclipse.gmt.umlx.mm.editor.regimes.E2AssociationDomainProvider
All Implemented Interfaces:
IDomainProvider<E2DirectedAssociation>

public class E2AssociationDomainProvider
extends AbstractDomainProvider<E2DirectedAssociation>


Constructor Summary
E2AssociationDomainProvider(UClassVariable source, UClassVariable target)
           
 
Method Summary
 java.util.Collection<E2DirectedAssociation> getDomain()
          Return the elements that define the domain.
 java.lang.String getElementsTitle()
          Return the text to appear above the list of element selections.
 org.eclipse.swt.graphics.Image getImage(E2DirectedAssociation element)
          Return the Image to display alongside element in the selection list
 java.lang.String getLabel(E2DirectedAssociation element)
          Return the String to display alongside element in the selection list
 E2DirectedAssociation getNullElement()
          Return the element used to denote a null element
 java.lang.String getParentLabel(E2DirectedAssociation element)
          Return the String to display alongside element's parent in the parent selection list
 java.lang.String getTitle()
          Return a descriptive title for the doamin selection
 
Methods inherited from class org.eclipse.gmt.umlx.editor.property.domains.AbstractDomainProvider
getParentImage, getParentsTitle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

E2AssociationDomainProvider

public E2AssociationDomainProvider(UClassVariable source,
                                   UClassVariable target)
Method Detail

getDomain

public java.util.Collection<E2DirectedAssociation> getDomain()
Description copied from interface: IDomainProvider
Return the elements that define the domain.

Returns:
the domain elements

getElementsTitle

public java.lang.String getElementsTitle()
Description copied from interface: IDomainProvider
Return the text to appear above the list of element selections.

Specified by:
getElementsTitle in interface IDomainProvider<E2DirectedAssociation>
Overrides:
getElementsTitle in class AbstractDomainProvider<E2DirectedAssociation>
Returns:
selections title text

getImage

public org.eclipse.swt.graphics.Image getImage(E2DirectedAssociation element)
Description copied from interface: IDomainProvider
Return the Image to display alongside element in the selection list

Specified by:
getImage in interface IDomainProvider<E2DirectedAssociation>
Overrides:
getImage in class AbstractDomainProvider<E2DirectedAssociation>
Parameters:
element - selection
Returns:
the Image

getLabel

public java.lang.String getLabel(E2DirectedAssociation element)
Description copied from interface: IDomainProvider
Return the String to display alongside element in the selection list

Specified by:
getLabel in interface IDomainProvider<E2DirectedAssociation>
Overrides:
getLabel in class AbstractDomainProvider<E2DirectedAssociation>
Parameters:
element - selection
Returns:
the String

getNullElement

public E2DirectedAssociation getNullElement()
Description copied from interface: IDomainProvider
Return the element used to denote a null element

Returns:
a non-null element if a null element exists, or null if not

getParentLabel

public java.lang.String getParentLabel(E2DirectedAssociation element)
Description copied from interface: IDomainProvider
Return the String to display alongside element's parent in the parent selection list

Specified by:
getParentLabel in interface IDomainProvider<E2DirectedAssociation>
Overrides:
getParentLabel in class AbstractDomainProvider<E2DirectedAssociation>
Parameters:
element - selection
Returns:
the String

getTitle

public java.lang.String getTitle()
Description copied from interface: IDomainProvider
Return a descriptive title for the doamin selection

Returns:
a title