Changeset 2005 in josm for trunk/src/org/openstreetmap/josm/actions/UploadAction.java
- Timestamp:
- 2009-08-29T15:51:00+02:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/UploadAction.java
r1991 r2005 31 31 import org.openstreetmap.josm.gui.ExceptionDialogUtil; 32 32 import org.openstreetmap.josm.gui.ExtendedDialog; 33 import org.openstreetmap.josm.gui.OptionPaneUtil;34 33 import org.openstreetmap.josm.gui.OsmPrimitivRenderer; 35 34 import org.openstreetmap.josm.gui.PleaseWaitRunnable; … … 113 112 return; 114 113 if (Main.map == null) { 115 OptionPane Util.showMessageDialog(114 JOptionPane.showMessageDialog( 116 115 Main.parent, 117 116 tr("Nothing to upload. Get some data first."), … … 124 123 ConflictCollection conflicts = Main.map.mapView.getEditLayer().getConflicts(); 125 124 if (conflicts !=null && !conflicts.isEmpty()) { 126 OptionPane Util.showMessageDialog(125 JOptionPane.showMessageDialog( 127 126 Main.parent, 128 127 tr("There are unresolved conflicts. You have to resolve these first."), … … 130 129 JOptionPane.WARNING_MESSAGE 131 130 ); 132 Main.map.conflictDialog.action.button.setSelected(true); 133 Main.map.conflictDialog.action.actionPerformed(null); 131 Main.map.conflictDialog.showDialog(); 134 132 return; 135 133 } … … 152 150 153 151 if (add.isEmpty() && update.isEmpty() && delete.isEmpty()) { 154 OptionPane Util.showMessageDialog(152 JOptionPane.showMessageDialog( 155 153 Main.parent, 156 154 tr("No changes to upload."), … … 226 224 ); 227 225 int optionsType = JOptionPane.YES_NO_CANCEL_OPTION; 228 int ret = OptionPane Util.showOptionDialog(226 int ret = JOptionPane.showOptionDialog( 229 227 null, 230 228 msg, … … 232 230 optionsType, 233 231 JOptionPane.ERROR_MESSAGE, 232 null, 234 233 options, 235 234 defaultOption … … 265 264 ); 266 265 int optionsType = JOptionPane.YES_NO_OPTION; 267 int ret = OptionPane Util.showOptionDialog(266 int ret = JOptionPane.showOptionDialog( 268 267 null, 269 268 msg, … … 271 270 optionsType, 272 271 JOptionPane.ERROR_MESSAGE, 272 null, 273 273 options, 274 274 defaultOption … … 385 385 ex.getDisplayMessage() 386 386 ); 387 OptionPane Util.showMessageDialog(387 JOptionPane.showMessageDialog( 388 388 Main.map, 389 389 msg,
Note:
See TracChangeset
for help on using the changeset viewer.
