001// License: GPL. For details, see LICENSE file. 002package org.openstreetmap.josm.gui.conflict.pair.nodes; 003 004import javax.swing.ListSelectionModel; 005 006import org.openstreetmap.josm.actions.ZoomToAction; 007import org.openstreetmap.josm.data.osm.Node; 008import org.openstreetmap.josm.gui.conflict.pair.ListMergeModel; 009import org.openstreetmap.josm.gui.conflict.pair.PairTable; 010import org.openstreetmap.josm.gui.widgets.OsmPrimitivesTableModel; 011 012public class NodeListTable extends PairTable { 013 014 /** 015 * Constructs a new {@code NodeListTable}. 016 * @param name table name 017 * @param model node merge model 018 * @param dm table model 019 * @param sm selection model 020 */ 021 public NodeListTable(String name, ListMergeModel<Node> model, OsmPrimitivesTableModel dm, ListSelectionModel sm) { 022 super(name, model, dm, new NodeListColumnModel(new NodeListTableCellRenderer()), sm); 023 } 024 025 @Override 026 protected ZoomToAction buildZoomToAction() { 027 return new ZoomToAction(this); 028 } 029}