/** * Set the first item of value list for the default value if this parameter does not need to * prompt. * * @param contextParameterList */ private static void updateDefaultValueForListTypeParameter( List<IContextParameter> contextParameterList) { for (IContextParameter contextParameter : contextParameterList) { String[] list = contextParameter.getValueList(); if (list == null) { continue; } if (list.length == 0) { contextParameter.setInternalValue(""); // $NON-NLS-1$ } else { contextParameter.setInternalValue(list[0]); } } }