Changeset 14729 in josm for trunk/src/org
- Timestamp:
- 2019-01-24T20:56:55+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/io/UploadParameterSummaryPanel.java
r12687 r14729 8 8 import java.beans.PropertyChangeEvent; 9 9 import java.beans.PropertyChangeListener; 10 import java.util.Optional; 10 11 11 12 import javax.swing.BorderFactory; … … 20 21 import org.openstreetmap.josm.io.OsmApi; 21 22 import org.openstreetmap.josm.io.UploadStrategySpecification; 23 import org.openstreetmap.josm.spi.preferences.Config; 22 24 import org.openstreetmap.josm.tools.ImageProvider; 23 25 … … 161 163 162 164 protected void updateSummary() { 163 StringBuilder sb = new StringBuilder(32); 164 sb.append("<html>") 165 .append(buildStrategySummary()) 166 .append("<br><br>") 167 .append(buildChangesetSummary()) 168 .append("</html>"); 169 jepMessage.setText(sb.toString()); 165 jepMessage.setText("<html>" 166 + buildStrategySummary() 167 + "<br>" 168 + Optional.of(OsmApi.getOsmApi().getServerUrl()) 169 .filter(url -> !Config.getUrls().getDefaultOsmApiUrl().equals(url)) 170 .map(url -> tr("… to server: <strong>{0}</strong>", url)) 171 .orElse("") 172 + "<br><br>" 173 + buildChangesetSummary() 174 + "</html>"); 170 175 } 171 176
Note:
See TracChangeset
for help on using the changeset viewer.