*/
protected void updateParamName(String parameterName) {
param.updateName(param.getName(), parameterName);
TextBox requestUriTextBox = ReferenceManager.getRequestUriTextBox(requestString);
Uri uri = new Uri(requestUriTextBox.getText());
String newUri = uri.getScheme() + "://" + uri.getAuthority() + uri.getPath() + "?";
String[] queryParameters = uri.getQueryParameters();
String[] queryValues = uri.getQueryValues();
for (int i = 0; i < queryParameters.length; i++) {
if (i > 0) newUri += "&";
if (queryValues[i].equals(param.getValue())) {
newUri += parameterName + "=" + queryValues[i];
}
else {
newUri += queryParameters[i] + "=" + queryValues[i];
}
}
newUri += uri.getFragment();
ListBox httpMethodListBox = ReferenceManager.getHttpMethodListBox(requestString);
ParameterTree parameterTree = ReferenceManager.getParameterTree(requestString);
parameterTree.updateReferences(requestUriTextBox, newUri);
parameterTree.updateTree();
requestString =