// Path: src/matcher/gui/GuiConstants.java
// public class GuiConstants {
// 	public static final double padding = 5;
// }
// 
// Path: src/matcher/mapping/MappingField.java
// public enum MappingField {
// 	PLAIN("Plain", NameType.PLAIN),
// 	MAPPED("Mapped", NameType.MAPPED_PLAIN),
// 	UID("UID", NameType.UID_PLAIN),
// 	AUX("AUX", NameType.AUX_PLAIN),
// 	AUX2("AUX2", NameType.AUX2_PLAIN);
// 
// 	MappingField(String name, NameType type) {
// 		this.name = name;
// 		this.type = type;
// 	}
// 
// 	@Override
// 	public String toString() {
// 		return name;
// 	}
// 
// 	public static final MappingField[] VALUES = values();
// 
// 	public final String name;
// 	public final NameType type;
// }


import java.util.List;
import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.scene.control.CheckBox;
import javafx.scene.control.ComboBox;
import javafx.scene.control.Label;
import javafx.scene.control.RadioButton;
import javafx.scene.control.ToggleGroup;
import javafx.scene.layout.GridPane;
import javafx.scene.layout.HBox;
import matcher.gui.GuiConstants;
import matcher.mapping.MappingField;
			if (observable == a.getSelectionModel().selectedItemProperty()) {
				cbOther = b;
			} else {
				cbOther = a;
			}

			if (newValue.equals(cbOther.getSelectionModel().getSelectedItem())) {
				if (!cbOther.getItems().contains(oldValue)) { // swap is not possible, use first suitable value
					for (T v : cbOther.getItems()) {
						if (!v.equals(newValue)) {
							oldValue = v;
							break;
						}
					}
				}

				suppress = true; // avoid recursive event
				cbOther.getSelectionModel().select(oldValue);
				suppress = false;
			}
		}

		private final ComboBox<T> a;
		private final ComboBox<T> b;
		private boolean suppress;
	}

	private ComboBox<String> cbNsSrc;
	private ComboBox<String> cbNsDst;
	private ComboBox<MappingField> cbFieldSrc;
// Path: src/matcher/gui/GuiConstants.java
// public class GuiConstants {
// 	public static final double padding = 5;
// }
// 
// Path: src/matcher/mapping/MappingField.java
// public enum MappingField {
// 	PLAIN("Plain", NameType.PLAIN),
// 	MAPPED("Mapped", NameType.MAPPED_PLAIN),
// 	UID("UID", NameType.UID_PLAIN),
// 	AUX("AUX", NameType.AUX_PLAIN),
// 	AUX2("AUX2", NameType.AUX2_PLAIN);
// 
// 	MappingField(String name, NameType type) {
// 		this.name = name;
// 		this.type = type;
// 	}
// 
// 	@Override
// 	public String toString() {
// 		return name;
// 	}
// 
// 	public static final MappingField[] VALUES = values();
// 
// 	public final String name;
// 	public final NameType type;
// }


// Path: src/matcher/gui/menu/LoadMappingsPane.java
import java.util.List;
import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.scene.control.CheckBox;
import javafx.scene.control.ComboBox;
import javafx.scene.control.Label;
import javafx.scene.control.RadioButton;
import javafx.scene.control.ToggleGroup;
import javafx.scene.layout.GridPane;
import javafx.scene.layout.HBox;
import matcher.gui.GuiConstants;
import matcher.mapping.MappingField;

			if (observable == a.getSelectionModel().selectedItemProperty()) {
				cbOther = b;
			} else {
				cbOther = a;
			}

			if (newValue.equals(cbOther.getSelectionModel().getSelectedItem())) {
				if (!cbOther.getItems().contains(oldValue)) { // swap is not possible, use first suitable value
					for (T v : cbOther.getItems()) {
						if (!v.equals(newValue)) {
							oldValue = v;
							break;
						}
					}
				}

				suppress = true; // avoid recursive event
				cbOther.getSelectionModel().select(oldValue);
				suppress = false;
			}
		}

		private final ComboBox<T> a;
		private final ComboBox<T> b;
		private boolean suppress;
	}

	private ComboBox<String> cbNsSrc;
	private ComboBox<String> cbNsDst;
	private ComboBox<MappingField> cbFieldSrc;
	private ComboBox<MappingField> cbFieldDst;