Changeset 17436 in osm for applications/editors/josm
- Timestamp:
- 2009-09-03T15:17:15+02:00 (15 years ago)
- Location:
- applications/editors/josm/plugins/utilsplugin/src/UtilsPlugin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/utilsplugin/src/UtilsPlugin/JoinAreasAction.java
r17361 r17436 107 107 */ 108 108 public void actionPerformed(ActionEvent e) { 109 int result = new ExtendedDialog(Main.parent,110 tr("Enter values for all conflicts."),111 new JLabel(tr("THIS IS EXPERIMENTAL. Save your work and verify before uploading.")),112 new String[] {tr("Continue anyway"), tr("Cancel")},113 new String[] {"joinareas.png", "cancel.png"}).getValue();114 if(result != 1) return;115 116 109 Collection<OsmPrimitive> selection = Main.main.getCurrentDataSet().getSelectedWays(); 117 110 … … 299 292 return false; // No conflicts found 300 293 301 int result = new ExtendedDialog(Main.parent, 302 tr("Enter values for all conflicts."), 303 p, 304 new String[] {tr("Solve Conflicts"), tr("Cancel")}, 305 new String[] {"dialogs/conflict.png", "cancel.png"}).getValue(); 306 307 if (result != 1) return true; // user cancel, unresolvable conflicts 294 ExtendedDialog ed = new ExtendedDialog(Main.parent, 295 tr("Enter values for all conflicts."), 296 new String[] {tr("Solve Conflicts"), tr("Cancel")}); 297 ed.setButtonIcons(new String[] {"dialogs/conflict.png", "cancel.png"}); 298 ed.setContent(p); 299 ed.showDialog(); 300 301 if (ed.getValue() != 1) return true; // user cancel, unresolvable conflicts 308 302 309 303 for (Entry<String, JComboBox> e : components.entrySet()) { … … 449 443 ArrayList<RelationRole> result = new ArrayList<RelationRole>(); 450 444 for (Relation r : Main.main.getCurrentDataSet().relations) { 451 if (r. deleted|| r.incomplete) continue;445 if (r.isDeleted() || r.incomplete) continue; 452 446 for (RelationMember rm : r.members) { 453 447 if (rm.member != osm) continue; -
applications/editors/josm/plugins/utilsplugin/src/UtilsPlugin/JumpToAction.java
r17399 r17436 20 20 import org.openstreetmap.josm.actions.JosmAction; 21 21 import org.openstreetmap.josm.data.Bounds; 22 import org.openstreetmap.josm.data.ProjectionBounds;23 22 import org.openstreetmap.josm.data.coor.LatLon; 24 23 import org.openstreetmap.josm.gui.MapView;
Note:
See TracChangeset
for help on using the changeset viewer.