Changeset 33885 in osm for applications/editors/josm/plugins
- Timestamp:
- 2017-11-25T01:17:10+01:00 (7 years ago)
- Location:
- applications/editors/josm/plugins/gpxfilter
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/gpxfilter/build.xml
r32680 r33885 4 4 <property name="commit.message" value="GPXFilter: moved to Alt-Shift-X"/> 5 5 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 6 <property name="plugin.main.version" value="1 0580"/>6 <property name="plugin.main.version" value="12643"/> 7 7 8 8 <property name="plugin.author" value="Upliner"/> -
applications/editors/josm/plugins/gpxfilter/src/gpxfilter/AddEGpxLayerAction.java
r32546 r33885 7 7 import java.awt.event.KeyEvent; 8 8 9 import org.openstreetmap.josm.Main;10 9 import org.openstreetmap.josm.actions.JosmAction; 10 import org.openstreetmap.josm.gui.MainApplication; 11 11 import org.openstreetmap.josm.tools.Shortcut; 12 12 … … 28 28 @Override 29 29 public void actionPerformed(ActionEvent arg0) { 30 getLayerManager().addLayer(new EGpxLayer(Main .map.mapView.getRealBounds()));30 getLayerManager().addLayer(new EGpxLayer(MainApplication.getMap().mapView.getRealBounds())); 31 31 } 32 32 } -
applications/editors/josm/plugins/gpxfilter/src/gpxfilter/EGpxLayer.java
r32546 r33885 4 4 import static org.openstreetmap.josm.tools.I18n.tr; 5 5 6 import org.openstreetmap.josm.Main;7 6 import org.openstreetmap.josm.data.Bounds; 8 7 import org.openstreetmap.josm.data.gpx.GpxData; … … 29 28 } 30 29 31 Main.map.repaint();30 invalidate(); 32 31 } 33 32 grabber.cancel(); -
applications/editors/josm/plugins/gpxfilter/src/gpxfilter/GpxFilterPlugin.java
r32546 r33885 2 2 package gpxfilter; 3 3 4 import org.openstreetmap.josm. Main;4 import org.openstreetmap.josm.gui.MainApplication; 5 5 import org.openstreetmap.josm.gui.MainMenu; 6 6 import org.openstreetmap.josm.plugins.Plugin; … … 11 11 public GpxFilterPlugin(PluginInformation info) { 12 12 super(info); 13 MainMenu.add(Main .main.menu.gpsMenu, new AddEGpxLayerAction(), false, 0);13 MainMenu.add(MainApplication.getMenu().gpsMenu, new AddEGpxLayerAction(), false, 0); 14 14 } 15 15
Note:
See TracChangeset
for help on using the changeset viewer.