*/
protected class ListAdapter implements IListAdapter {
public void customButtonPressed(ListDialogField field, int index) {
if (index == 0) { // "Add..." button
InputDialog dialog = new InputDialog(getShell(), "Add Argument Type", "Specify an argument type to add:", "", null);
if (dialog.open() == Window.OK && dialog.getValue().length() > 0) {
fArgumentTypesDialogField.addElement(new ArgumentType(dialog.getValue()));
}
}
}
public void selectionChanged(ListDialogField field) {