Changeset 10378 in josm for trunk/src/org/openstreetmap/josm/gui/io
- Timestamp:
- 2016-06-15T10:30:37+02:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/io
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/io/AbstractUploadTask.java
r10217 r10378 115 115 String lbl; 116 116 switch(primitiveType) { 117 case NODE: lbl = tr("Synchronize node {0} only", id); break; 118 case WAY: lbl = tr("Synchronize way {0} only", id); break; 119 case RELATION: lbl = tr("Synchronize relation {0} only", id); break; 117 // CHECKSTYLE.OFF: SingleSpaceSeparator 118 case NODE: lbl = tr("Synchronize node {0} only", id); break; 119 case WAY: lbl = tr("Synchronize way {0} only", id); break; 120 case RELATION: lbl = tr("Synchronize relation {0} only", id); break; 121 // CHECKSTYLE.ON: SingleSpaceSeparator 120 122 default: throw new AssertionError(); 121 123 } … … 140 142 ) 141 143 }; 142 String msg = 144 String msg = tr("<html>Uploading <strong>failed</strong> because the server has a newer version of one<br>" 143 145 + "of your nodes, ways, or relations.<br>" 144 146 + "The conflict is caused by the <strong>{0}</strong> with id <strong>{1}</strong>,<br>" … … 188 190 ) 189 191 }; 190 String msg = 192 String msg = tr("<html>Uploading <strong>failed</strong> because the server has a newer version of one<br>" 191 193 + "of your nodes, ways, or relations.<br>" 192 194 + "<br>" … … 217 219 */ 218 220 protected void handleUploadConflictForClosedChangeset(long changesetId, Date d) { 219 String msg = 221 String msg = tr("<html>Uploading <strong>failed</strong> because you have been using<br>" 220 222 + "changeset {0} which was already closed at {1}.<br>" 221 223 + "Please upload again with a new or an existing open changeset.</html>", -
trunk/src/org/openstreetmap/josm/gui/io/ChangesetManagementPanel.java
r10217 r10378 184 184 */ 185 185 public void setSelectedChangesetForNextUpload(Changeset cs) { 186 int idx 186 int idx = model.getIndexOf(cs); 187 187 if (idx >= 0) { 188 188 rbExisting.setSelected(true); -
trunk/src/org/openstreetmap/josm/gui/io/SaveLayerTask.java
r10212 r10378 41 41 monitor = NullProgressMonitor.INSTANCE; 42 42 } 43 this.layerInfo = 43 this.layerInfo = layerInfo; 44 44 this.parentMonitor = monitor; 45 45 } -
trunk/src/org/openstreetmap/josm/gui/io/SaveLayersDialog.java
r10212 r10378 324 324 } 325 325 326 class DiscardAndProceedAction extends AbstractAction 326 class DiscardAndProceedAction extends AbstractAction implements PropertyChangeListener { 327 327 DiscardAndProceedAction() { 328 328 initForDiscardAndExit(); … … 414 414 BufferedImage newIco = new BufferedImage(ICON_SIZE*3, ICON_SIZE, BufferedImage.TYPE_4BYTE_ABGR); 415 415 Graphics2D g = newIco.createGraphics(); 416 // CHECKSTYLE.OFF: SingleSpaceSeparator 416 417 g.drawImage(model.getLayersToUpload().isEmpty() ? upldDis : upld, ICON_SIZE*0, 0, ICON_SIZE, ICON_SIZE, null); 417 418 g.drawImage(model.getLayersToSave().isEmpty() ? saveDis : save, ICON_SIZE*1, 0, ICON_SIZE, ICON_SIZE, null); 418 419 g.drawImage(base, ICON_SIZE*2, 0, ICON_SIZE, ICON_SIZE, null); 420 // CHECKSTYLE.ON: SingleSpaceSeparator 419 421 putValue(SMALL_ICON, new ImageIcon(newIco)); 420 422 } -
trunk/src/org/openstreetmap/josm/gui/io/UploadPrimitivesTask.java
r9986 r10378 220 220 // partially uploaded. Better run on EDT. 221 221 // 222 Runnable r 222 Runnable r = new Runnable() { 223 223 @Override 224 224 public void run() { -
trunk/src/org/openstreetmap/josm/gui/io/UploadSelectionDialog.java
r10369 r10378 154 154 155 155 public List<OsmPrimitive> getSelectedPrimitives() { 156 List<OsmPrimitive> ret 156 List<OsmPrimitive> ret = new ArrayList<>(); 157 157 ret.addAll(lstSelectedPrimitives.getOsmPrimitiveListModel().getPrimitives(lstSelectedPrimitives.getSelectedIndices())); 158 158 ret.addAll(lstDeletedPrimitives.getOsmPrimitiveListModel().getPrimitives(lstDeletedPrimitives.getSelectedIndices())); -
trunk/src/org/openstreetmap/josm/gui/io/UploadStrategySpecification.java
r9841 r10378 15 15 * </ul> 16 16 */ 17 public class UploadStrategySpecification 17 public class UploadStrategySpecification { 18 18 /** indicates that the chunk size isn't specified */ 19 19 public static final int UNSPECIFIED_CHUNK_SIZE = -1; -
trunk/src/org/openstreetmap/josm/gui/io/UploadedObjectsSummaryPanel.java
r8836 r10378 134 134 * @return the number of objects to upload 135 135 */ 136 public int 136 public int getNumObjectsToUpload() { 137 137 return lstAdd.getModel().getSize() 138 138 + lstUpdate.getModel().getSize()
Note:
See TracChangeset
for help on using the changeset viewer.