Changeset 2039 in josm for trunk/src/org/openstreetmap/josm/actions
- Timestamp:
- 2009-09-03T15:13:20+02:00 (15 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/actions
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/MergeNodesAction.java
r2025 r2039 155 155 for (HashSet<Node> nodelinks : backlinks.values()) { 156 156 if (!nodelinks.containsAll(allNodes)) { 157 int option= new ExtendedDialog(Main.parent,157 ExtendedDialog ed = new ExtendedDialog(Main.parent, 158 158 tr("Merge nodes with different memberships?"), 159 tr("The selected nodes have differing relation memberships. " 160 + "Do you still want to merge them?"), 161 new String[] {tr("Merge Anyway"), tr("Cancel")}, 162 new String[] {"mergenodes.png", "cancel.png"}).getValue(); 163 if (option == 1) { 159 new String[] {tr("Merge Anyway"), tr("Cancel")}); 160 ed.setButtonIcons(new String[] {"mergenodes.png", "cancel.png"}); 161 ed.setContent(tr("The selected nodes have differing relation memberships. " 162 + "Do you still want to merge them?")); 163 ed.showDialog(); 164 165 if (ed.getValue() == 1) { 164 166 break; 165 167 } -
trunk/src/org/openstreetmap/josm/actions/ShowStatusReportAction.java
r1674 r2039 73 73 while ((line = input.readLine()) != null) { 74 74 // Skip potential private information 75 if (line.trim().toLowerCase().startsWith("osm-server.username")) 75 if (line.trim().toLowerCase().startsWith("osm-server.username")) { 76 76 continue; 77 if (line.trim().toLowerCase().startsWith("osm-server.password")) 77 } 78 if (line.trim().toLowerCase().startsWith("osm-server.password")) { 78 79 continue; 79 if (line.trim().toLowerCase().startsWith("marker.show")) 80 } 81 if (line.trim().toLowerCase().startsWith("marker.show")) { 80 82 continue; 83 } 81 84 82 85 text.append(line); … … 97 100 sp.setPreferredSize(new Dimension(600, 500)); 98 101 99 int result = new ExtendedDialog(Main.parent, tr(tr("Status Report")), sp, 100 new String[] {tr("Copy to clipboard and close"), tr("Close") }, 101 new String[] {"copy.png", "cancel.png" }).getValue(); 102 ExtendedDialog ed = new ExtendedDialog(Main.parent, 103 tr("Status Report"), 104 new String[] {tr("Copy to clipboard and close"), tr("Close") }); 105 ed.setButtonIcons(new String[] {"copy.png", "cancel.png" }); 106 ed.setContent(sp); 107 ed.showDialog(); 102 108 103 if( result!= 1) return;109 if(ed.getValue() != 1) return; 104 110 try { 105 111 Toolkit.getDefaultToolkit().getSystemClipboard().setContents( … … 107 113 public void lostOwnership(Clipboard clipboard, Transferable contents) {} 108 114 } 109 115 ); 110 116 } 111 117 catch (RuntimeException x) {}
Note:
See TracChangeset
for help on using the changeset viewer.