attributesChanged();
}
private void attributesChanged() {
final MapModel map = Controller.getCurrentController().getMap();
final AttributeRegistry attributes = AttributeRegistry.getRegistry(map);
final ComboBoxModel names = attributes.getComboBoxModel();
attributeNames.setModel(new ClonedComboBoxModel(names));
attributeNames.setEditable(!attributes.isRestricted());
replacingAttributeNames.setModel(new ClonedComboBoxModel(names));
replacingAttributeNames.setEditable(!attributes.isRestricted());
if (attributes.size() > 0) {
final Object first = names.getElementAt(0);
attributeNames.setSelectedItem(first);
replacingAttributeNames.setSelectedItem(first);
selectedAttributeChanged(attributeNames.getSelectedItem(), attributeValues);
selectedAttributeChanged(replacingAttributeNames.getSelectedItem(), replacingAttributeValues);