Precondition: the request.getPrompt will return a non-null value.
Postcondition: request.getInput will return a non-null value, request.isInputValid will return true.
226227228229230231232233234235236
InputHandler h = handler == null ? getProject().getInputHandler() : handler.getInputHandler(); h.handleInput(request); String value = request.getInput(); if ((value == null || value.trim().length() == 0) && defaultvalue != null) { value = defaultvalue;
227228229230231232233234235236237
213214215216217218219220221222223
} 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;