- Timestamp:
- 2015-05-17T03:24:57+02:00 (10 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 25 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/RestartAction.java
r8357 r8376 99 99 List<String> arguments = ManagementFactory.getRuntimeMXBean().getInputArguments(); 100 100 if (Main.isDebugEnabled()) { 101 Main.debug("VM arguments: "+arguments .toString());101 Main.debug("VM arguments: "+arguments); 102 102 } 103 103 for (String arg : arguments) { -
trunk/src/org/openstreetmap/josm/actions/ShowStatusReportAction.java
r8356 r8376 179 179 } 180 180 for (Entry<String, Setting<?>> entry : settings.entrySet()) { 181 text.append(entry.getKey()).append("=").append(entry.getValue().getValue() .toString()).append("\n");181 text.append(entry.getKey()).append("=").append(entry.getValue().getValue()).append("\n"); 182 182 } 183 183 } catch (Exception x) { -
trunk/src/org/openstreetmap/josm/command/DeleteCommand.java
r8291 r8376 123 123 for (OsmPrimitive osm: toDelete) { 124 124 if (osm.isDeleted()) 125 throw new IllegalArgumentException(osm .toString()+ " is already deleted");125 throw new IllegalArgumentException(osm + " is already deleted"); 126 126 clonedPrimitives.put(osm, osm.save()); 127 127 -
trunk/src/org/openstreetmap/josm/data/gpx/WayPoint.java
r7518 r8376 95 95 @Override 96 96 public String toString() { 97 return "WayPoint (" + (attr.containsKey(GPX_NAME) ? get(GPX_NAME) + ", " :"") + getCoor() .toString()+ ", " + attr + ")";97 return "WayPoint (" + (attr.containsKey(GPX_NAME) ? get(GPX_NAME) + ", " :"") + getCoor() + ", " + attr + ")"; 98 98 } 99 99 -
trunk/src/org/openstreetmap/josm/data/osm/WayData.java
r7005 r8376 51 51 @Override 52 52 public String toString() { 53 return super.toString() + " WAY" + nodes .toString();53 return super.toString() + " WAY" + nodes; 54 54 } 55 55 -
trunk/src/org/openstreetmap/josm/data/osm/history/HistoryOsmPrimitive.java
r8365 r8376 231 231 */ 232 232 public String getLocalName() { 233 String key = "name:" + Locale.getDefault() .toString();233 String key = "name:" + Locale.getDefault(); 234 234 if (get(key) != null) 235 235 return get(key); -
trunk/src/org/openstreetmap/josm/gui/GettingStarted.java
r7434 r8376 178 178 URL u = getClass().getResource(im); 179 179 if (u != null) { 180 m.appendReplacement(sb, Matcher.quoteReplacement("src=\"" + u .toString()+ "\""));180 m.appendReplacement(sb, Matcher.quoteReplacement("src=\"" + u + "\"")); 181 181 } 182 182 } -
trunk/src/org/openstreetmap/josm/gui/PleaseWaitDialog.java
r8308 r8376 32 32 private final JProgressBar progressBar = new JProgressBar(); 33 33 34 p ublicfinal JLabel currentAction = new JLabel("");34 private final JLabel currentAction = new JLabel(""); 35 35 private final JLabel customText = new JLabel(""); 36 36 public final transient BoundedRangeModel progress = progressBar.getModel(); -
trunk/src/org/openstreetmap/josm/gui/dialogs/MapPaintDialog.java
r8323 r8376 643 643 p.add(new JScrollPane(txtErrors), GBC.std().fill()); 644 644 for (Throwable t : s.getErrors()) { 645 txtErrors.append(t .toString()+ "\n");645 txtErrors.append(t + "\n"); 646 646 } 647 647 } -
trunk/src/org/openstreetmap/josm/gui/io/UploadLayerTask.java
r8291 r8376 140 140 } catch (Exception sxe) { 141 141 if (isCanceled()) { 142 Main.info("Ignoring exception caught because upload is canceled. Exception is: " + sxe .toString());142 Main.info("Ignoring exception caught because upload is canceled. Exception is: " + sxe); 143 143 return; 144 144 } -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/GeoImageLayer.java
r8373 r8376 804 804 805 805 if (toDelete.getFile().delete()) { 806 Main.info("File "+toDelete.getFile() .toString()+" deleted. ");806 Main.info("File "+toDelete.getFile()+" deleted. "); 807 807 } else { 808 808 JOptionPane.showMessageDialog( -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ThumbsLoader.java
r8285 r8376 59 59 60 60 private BufferedImage loadThumb(ImageEntry entry) { 61 final String cacheIdent = entry.getFile() .toString()+":"+maxSize;61 final String cacheIdent = entry.getFile()+":"+maxSize; 62 62 63 63 if (!cacheOff) { -
trunk/src/org/openstreetmap/josm/gui/layer/markerlayer/WebMarker.java
r8056 r8376 24 24 * 25 25 * @author Frederik Ramm 26 * 26 * @since 200 27 27 */ 28 28 public class WebMarker extends ButtonMarker { … … 36 36 } 37 37 38 @Override public void actionPerformed(ActionEvent ev) { 38 @Override 39 public void actionPerformed(ActionEvent ev) { 39 40 String error = OpenBrowser.displayUrl(webUrl.toString()); 40 41 if (error != null) { … … 42 43 new Notification( 43 44 "<b>" + tr("There was an error while trying to display the URL for this marker") + "</b><br>" + 44 tr("(URL was: ") + webUrl .toString()+ ")" + "<br>" + error)45 tr("(URL was: ") + webUrl + ")" + "<br>" + error) 45 46 .setIcon(JOptionPane.ERROR_MESSAGE) 46 47 .setDuration(Notification.TIME_LONG) -
trunk/src/org/openstreetmap/josm/gui/mappaint/Cascade.java
r8338 r8376 213 213 res.append(Utils.toString((Color)val)); 214 214 } else if (val != null) { 215 res.append(val .toString());215 res.append(val); 216 216 } 217 217 res.append("; "); -
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/LiteralExpression.java
r8285 r8376 28 28 return Arrays.toString((float[]) literal); 29 29 } 30 return "<" + literal .toString()+ ">";30 return "<" + literal + ">"; 31 31 } 32 32 } -
trunk/src/org/openstreetmap/josm/gui/preferences/advanced/ListListEditor.java
r8308 r8376 118 118 @Override 119 119 public String getElementAt(int index) { 120 return (index+1) + ": " + data.get(index) .toString();120 return (index+1) + ": " + data.get(index); 121 121 } 122 122 -
trunk/src/org/openstreetmap/josm/gui/tagging/TaggingPresetSelector.java
r8338 r8376 206 206 @Override 207 207 public String toString() { 208 return classification + " " + preset .toString();208 return classification + " " + preset; 209 209 } 210 210 } -
trunk/src/org/openstreetmap/josm/gui/tagging/ac/AutoCompletionListItem.java
r8291 r8376 85 85 } 86 86 87 @Override public String toString() { 87 @Override 88 public String toString() { 88 89 StringBuilder sb = new StringBuilder(); 89 90 sb.append("<val='"); 90 91 sb.append(value); 91 92 sb.append("',"); 92 sb.append(priority .toString());93 sb.append(priority); 93 94 sb.append(">"); 94 95 return sb.toString(); 95 96 } 96 97 97 @Override public int hashCode() { 98 @Override 99 public int hashCode() { 98 100 final int prime = 31; 99 101 int result = 1; … … 104 106 } 105 107 106 @Override public boolean equals(Object obj) { 108 @Override 109 public boolean equals(Object obj) { 107 110 if (this == obj) 108 111 return true; -
trunk/src/org/openstreetmap/josm/gui/widgets/MultiSplitLayout.java
r8345 r8376 1113 1113 @Override 1114 1114 public String toString() { 1115 return "MultiSplitLayout.Divider " + getBounds() .toString();1115 return "MultiSplitLayout.Divider " + getBounds(); 1116 1116 } 1117 1117 } -
trunk/src/org/openstreetmap/josm/io/imagery/WMSImagery.java
r8338 r8376 139 139 } 140 140 141 Main.info("GET " + getCapabilitiesUrl .toString());141 Main.info("GET " + getCapabilitiesUrl); 142 142 URLConnection openConnection = Utils.openHttpConnection(getCapabilitiesUrl); 143 143 StringBuilder ba = new StringBuilder(); -
trunk/src/org/openstreetmap/josm/tools/MultikeyActionsHandler.java
r8308 r8376 85 85 @Override 86 86 public String toString() { 87 return "MultikeyAction" + action .toString();87 return "MultikeyAction" + action; 88 88 } 89 89 } -
trunk/src/org/openstreetmap/josm/tools/Utils.java
r8347 r8376 246 246 } 247 247 if (s != null) { 248 s.append(sep).append(a .toString());248 s.append(sep).append(a); 249 249 } else { 250 250 s = new StringBuilder(a.toString()); -
trunk/src/org/openstreetmap/josm/tools/template_engine/CompoundTemplateEntry.java
r7937 r8376 36 36 } 37 37 38 39 38 @Override 40 39 public String toString() { 41 40 StringBuilder result = new StringBuilder(); 42 41 for (TemplateEntry te: entries) { 43 result.append(te .toString());42 result.append(te); 44 43 } 45 44 return result.toString(); 46 45 } 47 48 49 46 } -
trunk/src/org/openstreetmap/josm/tools/template_engine/Condition.java
r7937 r8376 45 45 for (TemplateEntry entry: entries) { 46 46 if (entry instanceof SearchExpressionCondition) { 47 sb.append(entry .toString());47 sb.append(entry); 48 48 } else { 49 49 sb.append("'"); 50 sb.append(entry .toString());50 sb.append(entry); 51 51 sb.append("'"); 52 52 } -
trunk/src/org/openstreetmap/josm/tools/template_engine/SearchExpressionCondition.java
r7937 r8376 26 26 @Override 27 27 public String toString() { 28 return condition.toString() + " '" + text .toString()+ "'";28 return condition.toString() + " '" + text + "'"; 29 29 } 30 31 30 }
Note:
See TracChangeset
for help on using the changeset viewer.