org.eclipse.gmt.umlx.editor.property.domains
Class AbstractDomainProvider<T>

java.lang.Object
  extended by org.eclipse.gmt.umlx.editor.property.domains.AbstractDomainProvider<T>
All Implemented Interfaces:
IDomainProvider<T>
Direct Known Subclasses:
ContextDomainProvider, E2AssociationDomainProvider, GImportsDomainProvider, OCLExpressionTypeDomainProvider

public abstract class AbstractDomainProvider<T>
extends java.lang.Object
implements IDomainProvider<T>


Constructor Summary
AbstractDomainProvider()
           
 
Method Summary
 java.lang.String getElementsTitle()
          Return the text to appear above the list of element selections.
 org.eclipse.swt.graphics.Image getImage(T element)
          Return the Image to display alongside element in the selection list
 java.lang.String getLabel(T element)
          Return the String to display alongside element in the selection list
 org.eclipse.swt.graphics.Image getParentImage(T element)
          Return the Image to display alongside element's parent in the parent selection list
 java.lang.String getParentLabel(T element)
          Return the String to display alongside element's parent in the parent selection list
 java.lang.String getParentsTitle()
          Return the text to appear above the list of parent selections.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.gmt.umlx.editor.property.domains.IDomainProvider
getDomain, getNullElement, getTitle
 

Constructor Detail

AbstractDomainProvider

public AbstractDomainProvider()
Method Detail

getImage

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

Specified by:
getImage in interface IDomainProvider<T>
Parameters:
element - selection
Returns:
the Image

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<T>
Returns:
selections title text

getLabel

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

Specified by:
getLabel in interface IDomainProvider<T>
Parameters:
element - selection
Returns:
the String

getParentImage

public org.eclipse.swt.graphics.Image getParentImage(T element)
Description copied from interface: IDomainProvider
Return the Image to display alongside element's parent in the parent selection list

Specified by:
getParentImage in interface IDomainProvider<T>
Parameters:
element - selection
Returns:
the Image

getParentLabel

public java.lang.String getParentLabel(T 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<T>
Parameters:
element - selection
Returns:
the String

getParentsTitle

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

Specified by:
getParentsTitle in interface IDomainProvider<T>
Returns:
parents title text