return string.substring(0, 1).toUpperCase() + string.substring(1);
}
@SuppressWarnings("unchecked")
static String multipleChoice(Project project, String message, String validValues, String defaultValue) {
InputRequest request = null;
if (validValues != null) {
Vector<String> accept = StringUtils.split(validValues, ',');
request = new MultipleChoiceInputRequest(message, accept);
}
else {
request = new InputRequest(message);
}
InputHandler handler = project.getInputHandler();
handler.handleInput(request);
final String value = request.getInput();
if ((value == null || value.trim().length() == 0) && defaultValue != null) {
return defaultValue;
}
return value;
}