}
componentType = componentTypes.get(componentTypeField.getSelectionIndex());
+
selectorIndex = selectorField.getSelectionIndex();
- int propertyIndex = propertyField.getSelectionIndex();
- propertyName = propertyIndex >= 0 ? propertyNames.get(propertyIndex) : propertyField.getText();
- if (propertyName.isEmpty()) {
- propertyField.setFocus();
- throw new ValidationException("Please select a property");
+ if (selectorIndex != 0) {
+ int propertyIndex = propertyField.getSelectionIndex();
+ propertyName = propertyIndex >= 0 ? propertyNames.get(propertyIndex) : propertyField.getText();
+ if (propertyName.isEmpty()) {
+ propertyField.setFocus();
+ throw new ValidationException("Please select a property");
+ }
}
// Try to parse number of items