Class StringToMapConverter

  • All Implemented Interfaces:
    org.eclipse.core.databinding.conversion.IConverter

    public class StringToMapConverter
    extends org.eclipse.core.databinding.conversion.Converter
    Converts input string to EMap using passed key
    • Constructor Detail

      • StringToMapConverter

        public StringToMapConverter​(org.eclipse.emf.common.util.EMap<String,​String> map,
                                    String key)
        Creates String to EMap converter
        Parameters:
        map - - an Map object, where values will be placed
        key - - key which will be used to place input value
    • Method Detail

      • convert

        public Object convert​(Object fromObject)
        Puts the value from fromObject into map using key
        Returns:
        modified map