Package org.eclipse.core.internal.databinding.conversion

Examples of org.eclipse.core.internal.databinding.conversion.NumberToShortConverter


        String fromName = (fromType.isPrimitive()) ? getKeyForClass(
            fromType, null) : fromType.getName();

        map
            .put(new Pair(fromName, SHORT_CLASS),
                new NumberToShortConverter(numberFormat,
                    fromType, true));
        map.put(new Pair(fromName, Short.class.getName()),
            new NumberToShortConverter(numberFormat, fromType,
                false));
      }
    }
  }
View Full Code Here


    for (int i = 0; i < fromTypes.length; i++) {
      Class fromType = fromTypes[i];
      if (!fromType.equals(Short.class) && !fromType.equals(Short.TYPE)) {
        String fromName = (fromType.isPrimitive()) ? getKeyForClass(fromType, null) : fromType.getName();
       
        map.put(new Pair(fromName, SHORT_TYPE), new NumberToShortConverter(numberFormat, fromType, true));
        map.put(new Pair(fromName, Short.class.getName()), new NumberToShortConverter(numberFormat, fromType, false));
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.eclipse.core.internal.databinding.conversion.NumberToShortConverter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.