Hi, try doc page: https://josm.openstreetmap.de/doc/deprecated-list.html
Some plugins were already updated. E.g. my plugins: https://github.com/mkyral/josm-tracer/commits/development https://github.com/mkyral/josm-pointInfo/commits/master Regards, Marián Dne 21.10.2017 v 18:46 Holger Mappt napsal(a): > Hi, > > Is there a plugin that is updated already? I need some examples to see > what I should do with the deprecated items. E.g. I have > Main.map.mapView.addMouseListener(mouseAdapter); > in my plugin. Main.map is a deprecated field and should be changed to > MainApplication.getMap(). But the access to > MainApplication.getMap().mapView is discouraged. The documentation [1] > says I should use LayerManager [2] instead. But how do I register a > mouse listener with the LayerManager? Or should I use the MainPanel > [3] for the mouse listener? If so it would be good to have a direct > mapping from Main.map.mapView.addMouseListener() to the corresponding > call on the deprecation page [4]. BTW, do I access MainPanel directly > (MainPanel.addMouseListener()) or what would be the right way to get a > reference to the MainPanel? > > Thanks, > Holger > > [1] > https://josm.openstreetmap.de/doc/org/openstreetmap/josm/gui/MapFrame.html#mapView > [2] > https://josm.openstreetmap.de/doc/org/openstreetmap/josm/gui/layer/LayerManager.html > [3] > https://josm.openstreetmap.de/doc/org/openstreetmap/josm/gui/MainPanel.html > [4] https://josm.openstreetmap.de/doc/deprecated-list.html > > > On 2017-10-19 at 15:22 +0200 Paul Hartmann wrote: >> Please update any plugins that you are maintaining! The majority of >> fixes should be not more than replacing one method by another, as >> indicated in the deprecation JavaDoc comment. > >
