Examples of NumberToFloatConverter


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

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

        map
            .put(new Pair(fromName, FLOAT_CLASS),
                new NumberToFloatConverter(numberFormat,
                    fromType, true));
        map.put(new Pair(fromName, Float.class.getName()),
            new NumberToFloatConverter(numberFormat, fromType,
                false));
      }
    }
  }
View Full Code Here

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

    for (int i = 0; i < fromTypes.length; i++) {
      Class fromType = fromTypes[i];
      if (!fromType.equals(Float.class) && !fromType.equals(Float.TYPE)) {
        String fromName = (fromType.isPrimitive()) ? getKeyForClass(fromType, null) : fromType.getName();
       
        map.put(new Pair(fromName, FLOAT_TYPE), new NumberToFloatConverter(numberFormat, fromType, true));
        map.put(new Pair(fromName, Float.class.getName()), new NumberToFloatConverter(numberFormat, fromType, false));
      }
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.