Last change
on this file since 2077 was 1912, checked in by Gubaer, 15 years ago |
Updated w.getNodes().contains(..) to w.containsNode(...)
|
File size:
1.1 KB
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.gui.dialogs;
|
---|
3 |
|
---|
4 | import javax.swing.JFrame;
|
---|
5 |
|
---|
6 | import org.openstreetmap.josm.data.osm.Node;
|
---|
7 | import org.openstreetmap.josm.data.osm.Way;
|
---|
8 |
|
---|
9 | public class ConflictResolutionDialogTest extends JFrame {
|
---|
10 |
|
---|
11 | private ConflictResolutionDialog dialog;
|
---|
12 |
|
---|
13 | protected void build() {
|
---|
14 | setSize(100,100);
|
---|
15 | dialog = new ConflictResolutionDialog(this);
|
---|
16 | dialog.setSize(600,600);
|
---|
17 |
|
---|
18 |
|
---|
19 | }
|
---|
20 | protected void populate() {
|
---|
21 | Way w1 = new Way(1);
|
---|
22 | w1.addNode(new Node(10));
|
---|
23 | w1.addNode(new Node(11));
|
---|
24 |
|
---|
25 | Way w2 = new Way(1);
|
---|
26 | w2.addNode(new Node(10));
|
---|
27 | w2.addNode(new Node(11));
|
---|
28 |
|
---|
29 | dialog.getConflictResolver().populate(w1, w2);
|
---|
30 | }
|
---|
31 |
|
---|
32 | public void showDialog() {
|
---|
33 | dialog.setVisible(true);
|
---|
34 | }
|
---|
35 |
|
---|
36 | public ConflictResolutionDialogTest() {
|
---|
37 | build();
|
---|
38 | }
|
---|
39 |
|
---|
40 | static public void main(String args[]) {
|
---|
41 | ConflictResolutionDialogTest test = new ConflictResolutionDialogTest();
|
---|
42 | test.setVisible(true);
|
---|
43 | test.populate();
|
---|
44 | test.showDialog();
|
---|
45 | }
|
---|
46 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.