}
// In most cases we'll just want to use a BasicEditor.
Editor editor = new BasicEditor();
Type type = parameter.getType();
// If the parameter expects a boolean value, use an EnumEditor with values
// "true" and "false".
if (type == Type.BOOLEAN) {
editor = new EnumEditor(TRUE_FALSE, null);
}