Changeset 34538 in osm for applications/editors


Ignore:
Timestamp:
2018-08-18T19:05:56+02:00 (6 years ago)
Author:
donvip
Message:

update to JOSM 14153

Location:
applications/editors/josm/plugins/OsmInspectorPlugin
Files:
3 edited

Legend:

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

    r33793 r34538  
    55    <property name="commit.message" value="Commit message"/>
    66    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    7     <property name="plugin.main.version" value="12881"/>
     7    <property name="plugin.main.version" value="14153"/>
    88
    99    <property name="plugin.author" value="Nikhil Shirahatti"/>
  • applications/editors/josm/plugins/OsmInspectorPlugin/src/org/openstreetmap/josm/plugins/osminspector/OsmInspectorLayer.java

    r34143 r34538  
    4949import org.opengis.referencing.NoSuchAuthorityCodeException;
    5050import org.opengis.referencing.crs.CoordinateReferenceSystem;
    51 import org.openstreetmap.josm.Main;
    5251import org.openstreetmap.josm.data.Bounds;
    5352import org.openstreetmap.josm.data.coor.LatLon;
    5453import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor;
     54import org.openstreetmap.josm.data.projection.ProjectionRegistry;
    5555import org.openstreetmap.josm.gui.MainApplication;
    5656import org.openstreetmap.josm.gui.MapView;
     
    345345                String typeNames[] = wfsClient.getTypeNames();
    346346                renderer = new StreamingRenderer();
    347                 CRS.decode(Main.getProjection().toCode());
     347                CRS.decode(ProjectionRegistry.getProjection().toCode());
    348348                crsOSMI = CRS.decode("EPSG:4326");
    349349                content = new MapContent();
  • applications/editors/josm/plugins/OsmInspectorPlugin/src/org/openstreetmap/josm/plugins/osminspector/OsmInspectorPlugin.java

    r33793 r34538  
    77import java.awt.event.MouseListener;
    88
    9 import org.openstreetmap.josm.Main;
    109import org.openstreetmap.josm.data.Bounds;
    1110import org.openstreetmap.josm.data.UserIdentityManager;
     
    1817import org.openstreetmap.josm.plugins.Plugin;
    1918import org.openstreetmap.josm.plugins.PluginInformation;
     19import org.openstreetmap.josm.spi.preferences.Config;
    2020import org.openstreetmap.josm.spi.preferences.PreferenceChangeEvent;
    2121import org.openstreetmap.josm.spi.preferences.PreferenceChangedListener;
     
    5353       
    5454        /* 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);
    5959        inspectorLayer = null;
    6060    }
     
    7474                NavigatableComponent.addZoomChangeListener(this);
    7575                MainApplication.getMap().mapView.addMouseListener(this);
    76                 Main.pref.addPreferenceChangeListener(this);
     76                Config.getPref().addPreferenceChangeListener(this);
    7777                /* put username to preferences */
    78                 Main.pref.put("osmInspector.josmUserName",
     78                Config.getPref().put("osmInspector.josmUserName",
    7979                        userIdentityManager.getUserName());
    8080                MainApplication.getToolbar().control.add( new ImportOsmInspectorBugsAction( this ) );
Note: See TracChangeset for help on using the changeset viewer.