Changeset 8390 in josm for trunk/src/org/openstreetmap/josm/plugins
- Timestamp:
- 2015-05-18T02:14:30+02:00 (10 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/plugins
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java
r8379 r8390 278 278 sb.append("<li>").append(depr.name); 279 279 if (depr.reason != null) { 280 sb.append(" (").append(depr.reason).append( ")");280 sb.append(" (").append(depr.reason).append(')'); 281 281 } 282 282 sb.append("</li>"); 283 283 } 284 sb.append("</ul>") 285 .append("</html>"); 284 sb.append("</ul></html>"); 286 285 JOptionPane.showMessageDialog( 287 286 parent, … … 1326 1325 } 1327 1326 for (String s : pl) { 1328 text.append("- ").append(s).append( "\n");1327 text.append("- ").append(s).append('\n'); 1329 1328 } 1330 1329 return text.toString(); … … 1351 1350 b.append(": "); 1352 1351 b.append(e.getValue()); 1353 b.append( "\n");1352 b.append('\n'); 1354 1353 } 1355 1354 JosmTextArea a = new JosmTextArea(10, 40); -
trunk/src/org/openstreetmap/josm/plugins/PluginInformation.java
r8379 r8390 304 304 */ 305 305 public String getDescriptionAsHtml() { 306 StringBuilder sb = new StringBuilder( );306 StringBuilder sb = new StringBuilder(128); 307 307 sb.append("<html><body>") 308 308 .append(description == null ? tr("no description available") : description); … … 315 315 && !downloadlink.startsWith("http://trac.openstreetmap.org/browser/applications/editors/josm/dist/") 316 316 && !downloadlink.startsWith("https://github.com/JOSM/")) { 317 sb.append("<p> </p><p>" +tr("<b>Plugin provided by an external source:</b> {0}", downloadlink)+"</p>");317 sb.append("<p> </p><p>").append(tr("<b>Plugin provided by an external source:</b> {0}", downloadlink)).append("</p>"); 318 318 } 319 319 sb.append("</body></html>"); -
trunk/src/org/openstreetmap/josm/plugins/PluginListParser.java
r8291 r8390 69 69 line = line.substring(1); 70 70 while (line.length() > 70) { 71 manifest.append(line.substring(0, 70)).append( "\n");71 manifest.append(line.substring(0, 70)).append('\n'); 72 72 line = " " + line.substring(70); 73 73 } 74 manifest.append(line).append( "\n");74 manifest.append(line).append('\n'); 75 75 continue; 76 76 } -
trunk/src/org/openstreetmap/josm/plugins/ReadRemotePluginInformationTask.java
r8379 r8390 115 115 StringBuilder sb = new StringBuilder(); 116 116 sb.append("site-") 117 .append(url.getHost()).append( "-");117 .append(url.getHost()).append('-'); 118 118 if (url.getPort() != -1) { 119 sb.append(url.getPort()).append( "-");119 sb.append(url.getPort()).append('-'); 120 120 } 121 121 String path = url.getPath(); … … 125 125 sb.append(c); 126 126 } else { 127 sb.append( "_");127 sb.append('_'); 128 128 } 129 129 } … … 167 167 String line; 168 168 while ((line = in.readLine()) != null) { 169 sb.append(line).append( "\n");169 sb.append(line).append('\n'); 170 170 } 171 171 return sb.toString(); … … 198 198 String line; 199 199 while ((line = err.readLine()) != null) { 200 sb.append(line).append( "\n");200 sb.append(line).append('\n'); 201 201 } 202 202 } catch (Exception ex) { … … 228 228 StringBuilder b = new StringBuilder(); 229 229 for (String part : msg.split("(?<=\\G.{200})")) { 230 b.append(part).append( "\n");230 b.append(part).append('\n'); 231 231 } 232 232 panel.add(new JLabel("<html><body width=\"500\"><b>"+b.toString().trim()+"</b></body></html>"), GBC.eol().insets(0, 0, 0, 10));
Note:
See TracChangeset
for help on using the changeset viewer.