Changeset 33872 in osm


Ignore:
Timestamp:
2017-11-22T00:37:56+01:00 (7 years ago)
Author:
donvip
Message:

update to JOSM 12758

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

Legend:

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

    r32680 r33872  
    44    <property name="commit.message" value="..."/>
    55    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    6     <property name="plugin.main.version" value="10580"/>
     6    <property name="plugin.main.version" value="12758"/>
    77
    88    <!-- Configure these properties (replace "..." accordingly).
  • applications/editors/josm/plugins/namemanager/src/org/openstreetmap/josm/plugins/namemanager/NameManagerPlugin.java

    r32549 r33872  
    22package org.openstreetmap.josm.plugins.namemanager;
    33
    4 import org.openstreetmap.josm.Main;
     4import org.openstreetmap.josm.gui.MainApplication;
    55import org.openstreetmap.josm.gui.MainMenu;
    66import org.openstreetmap.josm.plugins.Plugin;
     
    1717    public NameManagerPlugin(PluginInformation info) {
    1818        super(info);
    19         MainMenu.add(Main.main.menu.dataMenu, new NameManagerAction());
     19        MainMenu.add(MainApplication.getMenu().dataMenu, new NameManagerAction());
    2020    }
    2121}
  • applications/editors/josm/plugins/namemanager/src/org/openstreetmap/josm/plugins/namemanager/dialog/NameManagerDialog.java

    r33306 r33872  
    4242import org.openstreetmap.josm.Main;
    4343import org.openstreetmap.josm.data.osm.Way;
     44import org.openstreetmap.josm.gui.MainApplication;
    4445import org.openstreetmap.josm.gui.tagging.ac.AutoCompletingTextField;
    4546import org.openstreetmap.josm.gui.tagging.ac.AutoCompletionList;
     47import org.openstreetmap.josm.gui.tagging.ac.AutoCompletionManager;
    4648import org.openstreetmap.josm.plugins.namemanager.countryData.Country;
    4749import org.openstreetmap.josm.plugins.namemanager.countryData.CountryDataMemory;
     
    176178        tagNameAM = new AutoCompletingTextField();
    177179        AutoCompletionList list = new AutoCompletionList();
    178         Main.getLayerManager().getEditLayer().data.getAutoCompletionManager().populateWithKeys(list);
     180        AutoCompletionManager.of(MainApplication.getLayerManager().getEditLayer().data).populateWithKeys(list);
    179181        tagNameAM.setAutoCompletionList(list);
    180182        labelTagValueAM = new JLabel(tr(TAG_VALUE));
     
    189191                    }
    190192                    list.clear();
    191                     Main.getLayerManager().getEditLayer().data.getAutoCompletionManager().populateWithTagValues(list, tagNameAM.getText());
     193                    AutoCompletionManager.of(MainApplication.getLayerManager().getEditLayer().data)
     194                        .populateWithTagValues(list, tagNameAM.getText());
    192195                    tagValueAM.setAutoCompletionList(list);
    193196                }
  • applications/editors/josm/plugins/namemanager/src/org/openstreetmap/josm/plugins/namemanager/utils/NameManagerUtils.java

    r33305 r33872  
    1818import org.openstreetmap.josm.data.osm.Node;
    1919import org.openstreetmap.josm.data.osm.Way;
     20import org.openstreetmap.josm.gui.MainApplication;
    2021import org.openstreetmap.josm.plugins.namemanager.NameManagerPlugin;
    2122import org.openstreetmap.josm.plugins.namemanager.countryData.Country;
     
    5354            Coordinate topLeftCorner = getTopLeftCorener(areaBorder);
    5455            List<Pair<Node, Node>> areaBorderLines = areaBorder.getNodePairs(true);
    55             Collection<Way> ways = Main.getLayerManager().getEditDataSet().getWays();
     56            Collection<Way> ways = MainApplication.getLayerManager().getEditDataSet().getWays();
    5657            ways: for (Way way : ways) {
    5758                if (areaBorder == way) {
Note: See TracChangeset for help on using the changeset viewer.