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

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


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

        map
            .put(new Pair(fromName, BYTE_CLASS),
                new NumberToByteConverter(numberFormat,
                    fromType, true));
        map
            .put(new Pair(fromName, Byte.class.getName()),
                new NumberToByteConverter(numberFormat,
                    fromType, false));
      }
    }
  }
View Full Code Here


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

TOP

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

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.