// 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;
package matcher.gui.menu;




class LoadMappingsPane extends GridPane {
	LoadMappingsPane(List<String> namespaces) {
		init(namespaces);
	}

	private void init(List<String> namespaces) {
		setHgap(GuiConstants.padding);
		setVgap(GuiConstants.padding);

		add(new Label("Namespace"), 1, 0);
		add(new Label("Field"), 2, 0);

		add(new Label("Source:"), 0, 1);
		cbNsSrc = new ComboBox<>(FXCollections.observableArrayList(namespaces));
		cbNsSrc.getSelectionModel().select(0);
		add(cbNsSrc, 1, 1);
// 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;

package matcher.gui.menu;




class LoadMappingsPane extends GridPane {
	LoadMappingsPane(List<String> namespaces) {
		init(namespaces);
	}

	private void init(List<String> namespaces) {
		setHgap(GuiConstants.padding);
		setVgap(GuiConstants.padding);

		add(new Label("Namespace"), 1, 0);
		add(new Label("Field"), 2, 0);

		add(new Label("Source:"), 0, 1);
		cbNsSrc = new ComboBox<>(FXCollections.observableArrayList(namespaces));
		cbNsSrc.getSelectionModel().select(0);
		add(cbNsSrc, 1, 1);
		cbFieldSrc = new ComboBox<>(FXCollections.observableArrayList(MappingField.VALUES));