Bug 180392 [DataBinding] Add support for shorts, bytes, and BigDecimal to StringToNumberConverter
We need to add the appropriate API to StringToNumberConverter and NumberToStringConverter for short and bytes as their boxed types are Numbers as well.
tests/org.eclipse.jface.tests.databinding/src/org/eclipse/core/tests/databinding/conversion/StringToNumberConverterTest.java
.doubleValue()));
		assertEquals(input, result);
	}
	public void testConvertsToLong() throws Exception {
		Long input = new Long(1000);
		StringToNumberConverter converter = StringToNumberConverter.toLong(false);
		Long result = (Long) converter.convert(numberIntegerFormat.format(input
				.longValue()));
		assertEquals(input, result);
	}
	public void testConvertsToFloat() throws Exception {
		Float input = new Float(1000);
		StringToNumberConverter converter = StringToNumberConverter.toFloat(false);
		Float result = (Float) converter.convert(numberFormat.format(input
				.floatValue()));
		assertEquals(input, result);
	}
	public void testConvertedToIntegerPrimitive() throws Exception {
		Integer input = new Integer(1000);
		StringToNumberConverter converter = StringToNumberConverter.toInteger(true);
		Integer result = (Integer) converter.convert(numberIntegerFormat.format(input
				.longValue()));
		assertEquals(input, result);
	}
	public void testConvertsToDoublePrimitive() throws Exception {
		Double input = new Double(1000);
		StringToNumberConverter converter = StringToNumberConverter.toDouble(true);
		Double result = (Double) converter.convert(numberFormat.format(input
				.doubleValue()));
		assertEquals(input, result);