Changeset 34538 in osm
- Timestamp:
- 2018-08-18T19:05:56+02:00 (6 years ago)
- Location:
- applications/editors/josm/plugins/OsmInspectorPlugin
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/OsmInspectorPlugin/build.xml
r33793 r34538 5 5 <property name="commit.message" value="Commit message"/> 6 6 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 7 <property name="plugin.main.version" value="1 2881"/>7 <property name="plugin.main.version" value="14153"/> 8 8 9 9 <property name="plugin.author" value="Nikhil Shirahatti"/> -
applications/editors/josm/plugins/OsmInspectorPlugin/src/org/openstreetmap/josm/plugins/osminspector/OsmInspectorLayer.java
r34143 r34538 49 49 import org.opengis.referencing.NoSuchAuthorityCodeException; 50 50 import org.opengis.referencing.crs.CoordinateReferenceSystem; 51 import org.openstreetmap.josm.Main;52 51 import org.openstreetmap.josm.data.Bounds; 53 52 import org.openstreetmap.josm.data.coor.LatLon; 54 53 import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor; 54 import org.openstreetmap.josm.data.projection.ProjectionRegistry; 55 55 import org.openstreetmap.josm.gui.MainApplication; 56 56 import org.openstreetmap.josm.gui.MapView; … … 345 345 String typeNames[] = wfsClient.getTypeNames(); 346 346 renderer = new StreamingRenderer(); 347 CRS.decode( Main.getProjection().toCode());347 CRS.decode(ProjectionRegistry.getProjection().toCode()); 348 348 crsOSMI = CRS.decode("EPSG:4326"); 349 349 content = new MapContent(); -
applications/editors/josm/plugins/OsmInspectorPlugin/src/org/openstreetmap/josm/plugins/osminspector/OsmInspectorPlugin.java
r33793 r34538 7 7 import java.awt.event.MouseListener; 8 8 9 import org.openstreetmap.josm.Main;10 9 import org.openstreetmap.josm.data.Bounds; 11 10 import org.openstreetmap.josm.data.UserIdentityManager; … … 18 17 import org.openstreetmap.josm.plugins.Plugin; 19 18 import org.openstreetmap.josm.plugins.PluginInformation; 19 import org.openstreetmap.josm.spi.preferences.Config; 20 20 import org.openstreetmap.josm.spi.preferences.PreferenceChangeEvent; 21 21 import org.openstreetmap.josm.spi.preferences.PreferenceChangedListener; … … 53 53 54 54 /* add default values for static variables */ 55 Main.pref.put("osmInspector.nickname", "osmi");56 Main.pref.putBoolean("osmInspector.showBugs", true);57 Main.pref.put("osmInspector.version", getPluginInformation().version);58 Main.pref.put("osmInspector.localVersion",getPluginInformation().localversion);55 Config.getPref().put("osmInspector.nickname", "osmi"); 56 Config.getPref().putBoolean("osmInspector.showBugs", true); 57 Config.getPref().put("osmInspector.version", getPluginInformation().version); 58 Config.getPref().put("osmInspector.localVersion",getPluginInformation().localversion); 59 59 inspectorLayer = null; 60 60 } … … 74 74 NavigatableComponent.addZoomChangeListener(this); 75 75 MainApplication.getMap().mapView.addMouseListener(this); 76 Main.pref.addPreferenceChangeListener(this);76 Config.getPref().addPreferenceChangeListener(this); 77 77 /* put username to preferences */ 78 Main.pref.put("osmInspector.josmUserName",78 Config.getPref().put("osmInspector.josmUserName", 79 79 userIdentityManager.getUserName()); 80 80 MainApplication.getToolbar().control.add( new ImportOsmInspectorBugsAction( this ) );
Note:
See TracChangeset
for help on using the changeset viewer.