Class Converters


  • public class Converters
    extends Object
    Static utility methods and constants pertaining to IConverter instances.
    • Constructor Detail

      • Converters

        public Converters()
    • Method Detail

      • fromFeature

        public static org.eclipse.core.databinding.conversion.IConverter fromFeature​(org.eclipse.emf.ecore.EStructuralFeature feature)
        Creates a converter that returns value of the feature of the input emf-object.
        Parameters:
        feature - the emf feature
        Returns:
        a emf-feature based converter
      • constant

        public static org.eclipse.core.databinding.conversion.IConverter constant​(Object value)
        Creates a converter that returns value for any input.
        Parameters:
        value - the constant value for the converter to return
        Returns:
        a converter that always returns value