Last change
on this file since 5299 was 5297, checked in by Don-vip, 12 years ago |
fix #4493, fix #7750: conflict dialog, nodes and members tab: allow selection via double-click, allow zoom via contexual menu, plus various fix in EDT violations
|
File size:
805 bytes
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.gui.conflict.pair.nodes;
|
---|
3 |
|
---|
4 | import javax.swing.JTable;
|
---|
5 | import javax.swing.ListSelectionModel;
|
---|
6 |
|
---|
7 | import org.openstreetmap.josm.actions.ZoomToAction;
|
---|
8 | import org.openstreetmap.josm.gui.widgets.OsmPrimitivesTable;
|
---|
9 | import org.openstreetmap.josm.gui.widgets.OsmPrimitivesTableModel;
|
---|
10 |
|
---|
11 | public class NodeListTable extends OsmPrimitivesTable {
|
---|
12 |
|
---|
13 | public NodeListTable(String name, OsmPrimitivesTableModel dm, ListSelectionModel sm) {
|
---|
14 | super(dm, new NodeListColumnModel(new NodeListTableCellRenderer()), sm);
|
---|
15 | setName(name);
|
---|
16 | setAutoResizeMode(JTable.AUTO_RESIZE_LAST_COLUMN);
|
---|
17 | }
|
---|
18 |
|
---|
19 | @Override
|
---|
20 | protected ZoomToAction buildZoomToAction() {
|
---|
21 | return new ZoomToAction(this);
|
---|
22 | }
|
---|
23 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.