Bug 179409 [DataBinding] Rework StringToBooleanPrimitiveConverter
The current implementation has 4 values possible to translate from. This needs to be externalized so that any number of values can be specified.
bundles/org.eclipse.core.databinding/src/org/eclipse/core/internal/databinding/conversion/StringToBooleanPrimitiveConverter.java
/* (non-Javadoc)
	 * @see org.eclipse.jface.binding.converter.IConverter#convert(java.lang.Object)
	 */
	public Object convert(Object source) {
        String s = (String) source;
        if (s.equals(BindingMessages.getString("Yes")) || s.equals(BindingMessages.getString("yes")) || s.equals(BindingMessages.getString("true")) || s.equals(BindingMessages.getString("True"))) 
            return Boolean.TRUE;
        if (s.equals(BindingMessages.getString("No")) || s.equals(BindingMessages.getString("no")) || s.equals(BindingMessages.getString("false")) || s.equals(BindingMessages.getString("False")))    
            return Boolean.FALSE;
        
		throw new IllegalArgumentException(s + " is not a legal boolean value"); 
	}
	public Object getFromType() {
		return String.class;
	}
	public Object getToType() {
		return Boolean.TYPE;
	}
}