public void onClick(Widget sender) {
if (customTypesListBox.getItemCount() > 0) {
String selectedCustomType = customTypesListBox.getItemText(customTypesListBox.getSelectedIndex());
ParamItem.customTypes.remove(selectedCustomType);
ParamItem.customTypeOptions.remove(selectedCustomType);
customTypesListBox.removeItem(customTypesListBox.getSelectedIndex());
optionsTextArea.setText("");
if (param.getType().equals(selectedCustomType)) {
param.setOptions(new Vector());
}
if (customTypesListBox.getItemCount() > 0) {