Changeset 34803 in osm for applications/editors/josm
- Timestamp:
- 2019-01-01T15:48:40+01:00 (6 years ago)
- Location:
- applications/editors/josm/plugins/imagery-xml-bounds
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/imagery-xml-bounds/build.xml
r34518 r34803 4 4 <property name="commit.message" value="Commit message"/> 5 5 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 6 <property name="plugin.main.version" value="14 153"/>6 <property name="plugin.main.version" value="14347"/> 7 7 8 8 <!-- Configure these properties (replace "..." accordingly). -
applications/editors/josm/plugins/imagery-xml-bounds/src/net/boplicity/xmleditor/XmlTextPane.java
r34076 r34803 84 84 try { 85 85 if (text.charAt(start) != NEW_LINE) { 86 while ( (end < text.length())87 && (Character.isWhitespace(text.charAt(end)))88 && (text.charAt(end) != NEW_LINE)) {86 while (end < text.length() 87 && Character.isWhitespace(text.charAt(end)) 88 && text.charAt(end) != NEW_LINE) { 89 89 end++; 90 90 } -
applications/editors/josm/plugins/imagery-xml-bounds/src/org/openstreetmap/josm/plugins/imageryxmlbounds/actions/downloadtask/DownloadXmlBoundsTask.java
r34306 r34803 4 4 import static org.openstreetmap.josm.tools.I18n.tr; 5 5 6 import java.util.Optional; 6 7 import java.util.concurrent.Future; 7 8 … … 9 10 import org.openstreetmap.josm.actions.downloadtasks.DownloadParams; 10 11 import org.openstreetmap.josm.data.Bounds; 12 import org.openstreetmap.josm.data.osm.DataSet; 11 13 import org.openstreetmap.josm.gui.MainApplication; 12 14 import org.openstreetmap.josm.gui.layer.Layer; … … 93 95 94 96 @Override 95 protected OsmDataLayer createNewLayer( ) {96 return new XmlBoundsLayer(d ataSet, XmlBoundsLayer.createNewName(), null);97 protected OsmDataLayer createNewLayer(DataSet ds, Optional<String> layerName) { 98 return new XmlBoundsLayer(ds, layerName.orElseGet(this::generateLayerName), null); 97 99 } 98 100 }
Note:
See TracChangeset
for help on using the changeset viewer.