Class ECPAbstractCustomControlSWT.SWTCustomControlHelper
- java.lang.Object
-
- org.eclipse.emf.ecp.view.spi.custom.swt.ECPAbstractCustomControlSWT.SWTCustomControlHelper
-
- Enclosing class:
- ECPAbstractCustomControlSWT
public final class ECPAbstractCustomControlSWT.SWTCustomControlHelper extends java.lang.Object
TheECPAbstractCustomControlSWT.SWTCustomControlHelper
allows the retrieval of SWT specific elements.- Author:
- Eugen Neufeld
-
-
Constructor Summary
Constructors Constructor Description SWTCustomControlHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getHelp(VDomainModelReference domainModelReference)
This return a text providing a long helpful description of the feature.org.eclipse.swt.graphics.Image
getImage(int imageType)
Allows to get anImage
based on the constants defined inECPAbstractCustomControlSWT
.java.lang.String
getLabel(VDomainModelReference domainModelReference)
This return a text providing a short label of the feature.
-
-
-
Method Detail
-
getImage
public org.eclipse.swt.graphics.Image getImage(int imageType)
Allows to get anImage
based on the constants defined inECPAbstractCustomControlSWT
.- Parameters:
imageType
- the image type to retrieve- Returns:
- the retrieved Image or null if an unknown imageType was provided
-
getHelp
public java.lang.String getHelp(VDomainModelReference domainModelReference)
This return a text providing a long helpful description of the feature. Can be used for example in a ToolTip.- Parameters:
domainModelReference
- theVDomainModelReference
to retrieve the help text for- Returns:
- the String containing the helpful description or null if no description is found
- Since:
- 1.3
-
getLabel
public java.lang.String getLabel(VDomainModelReference domainModelReference)
This return a text providing a short label of the feature. Can be used for example as a label in front of the edit field.- Parameters:
domainModelReference
- theVDomainModelReference
to retrieve the text for- Returns:
- the String containing the label null if no label is found
- Since:
- 1.3
-
-