Class EnumContentProvider
- java.lang.Object
-
- com._1c.g5.v8.dt.ui.aef.providers.EnumContentProvider
-
- All Implemented Interfaces:
IContentProvider
,IStructuredContentProvider
- Direct Known Subclasses:
ApplicationUsePurposeContentProvider
public class EnumContentProvider extends Object implements IStructuredContentProvider
A content provider for literals of enumerated types: descendants of eitherEEnum
orEnum
-
-
Constructor Summary
Constructors Constructor Description EnumContentProvider(Class<? extends Enum<?>> enumClass)
Constructor ofEnumContentProvider
for case of Enum classEnumContentProvider(org.eclipse.emf.ecore.EEnum enumType)
Constructor ofEnumContentProvider
for case ofEEnum
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
This implementation does nothing.Object[]
getElements(Object inputElement)
Returns all the literals of the enumeration provided in a constructor.void
inputChanged(Viewer viewer, Object oldInput, Object newInput)
This implementation does nothing.
-
-
-
Constructor Detail
-
EnumContentProvider
public EnumContentProvider(org.eclipse.emf.ecore.EEnum enumType)
Constructor ofEnumContentProvider
for case ofEEnum
- Parameters:
enumType
- the enum tpye
-
EnumContentProvider
public EnumContentProvider(Class<? extends Enum<?>> enumClass)
Constructor ofEnumContentProvider
for case of Enum class- Parameters:
enumClass
- the enum class
-
-
Method Detail
-
getElements
public Object[] getElements(Object inputElement)
Returns all the literals of the enumeration provided in a constructor.- Specified by:
getElements
in interfaceIStructuredContentProvider
-
dispose
public void dispose()
This implementation does nothing.- Specified by:
dispose
in interfaceIContentProvider
-
inputChanged
public void inputChanged(Viewer viewer, Object oldInput, Object newInput)
This implementation does nothing.- Specified by:
inputChanged
in interfaceIContentProvider
-
-