Changeset 34505 in osm for applications/editors/josm


Ignore:
Timestamp:
2018-08-18T15:31:40+02:00 (6 years ago)
Author:
donvip
Message:

update to JOSM 14153

Location:
applications/editors/josm/plugins/editgpx
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/editgpx/build.xml

    r33782 r34505  
    44    <property name="commit.message" value="Changed constructor signature of plugin main class"/>
    55    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    6     <property name="plugin.main.version" value="12636"/>
     6    <property name="plugin.main.version" value="14153"/>
    77   
    88    <!-- Configure these properties (replace "..." accordingly).
  • applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/EditGpxLayer.java

    r33782 r34505  
    1717import javax.swing.ImageIcon;
    1818
    19 import org.openstreetmap.josm.Main;
    2019import org.openstreetmap.josm.data.Bounds;
    2120import org.openstreetmap.josm.data.gpx.GpxData;
    2221import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor;
    2322import org.openstreetmap.josm.data.projection.Projection;
     23import org.openstreetmap.josm.data.projection.ProjectionRegistry;
    2424import org.openstreetmap.josm.gui.MainApplication;
    2525import org.openstreetmap.josm.gui.MapView;
     
    105105        //don't iterate through dataSet whiling making changes
    106106        synchronized(layerImport.importing) {
    107             Projection projection = Main.getProjection();
     107            Projection projection = ProjectionRegistry.getProjection();
    108108            for (EditGpxTrack track: data.getTracks()) {
    109109                for (EditGpxTrackSegment segment: track.getSegments()) {
  • applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/EditGpxMode.java

    r33782 r34505  
    1515import java.util.List;
    1616
    17 import org.openstreetmap.josm.Main;
    1817import org.openstreetmap.josm.actions.mapmode.MapMode;
    1918import org.openstreetmap.josm.data.projection.Projection;
     19import org.openstreetmap.josm.data.projection.ProjectionRegistry;
    2020import org.openstreetmap.josm.gui.MainApplication;
    2121import org.openstreetmap.josm.gui.MapFrame;
     
    8989        //go through nodes and mark the ones in the selection rect as deleted
    9090        if (currentEditLayer != null) {
    91             Projection projection = Main.getProjection();
     91            Projection projection = ProjectionRegistry.getProjection();
    9292            for (EditGpxTrack track: currentEditLayer.data.getTracks()) {
    9393                for (EditGpxTrackSegment segment: track.getSegments()) {
  • applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/GPXLayerImportAction.java

    r33782 r34505  
    2323import javax.swing.JOptionPane;
    2424
    25 import org.openstreetmap.josm.Main;
    2625import org.openstreetmap.josm.gui.MainApplication;
    2726import org.openstreetmap.josm.gui.layer.GpxLayer;
     
    8786                }
    8887            };
    89             final JDialog dlg = optionPane.createDialog(Main.parent, tr("Import path from GPX layer"));
     88            final JDialog dlg = optionPane.createDialog(MainApplication.getMainFrame(), tr("Import path from GPX layer"));
    9089            dlg.setVisible(true);
    9190
     
    108107        } else {
    109108            // no gps layer
    110             JOptionPane.showMessageDialog(Main.parent,tr("No GPX data layer found."));
     109            JOptionPane.showMessageDialog(MainApplication.getMainFrame(),tr("No GPX data layer found."));
    111110        }
    112111    }
Note: See TracChangeset for help on using the changeset viewer.