Changeset 33872 in osm
- Timestamp:
- 2017-11-22T00:37:56+01:00 (7 years ago)
- Location:
- applications/editors/josm/plugins/namemanager
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/namemanager/build.xml
r32680 r33872 4 4 <property name="commit.message" value="..."/> 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="12758"/> 7 7 8 8 <!-- Configure these properties (replace "..." accordingly). -
applications/editors/josm/plugins/namemanager/src/org/openstreetmap/josm/plugins/namemanager/NameManagerPlugin.java
r32549 r33872 2 2 package org.openstreetmap.josm.plugins.namemanager; 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; … … 17 17 public NameManagerPlugin(PluginInformation info) { 18 18 super(info); 19 MainMenu.add(Main .main.menu.dataMenu, new NameManagerAction());19 MainMenu.add(MainApplication.getMenu().dataMenu, new NameManagerAction()); 20 20 } 21 21 } -
applications/editors/josm/plugins/namemanager/src/org/openstreetmap/josm/plugins/namemanager/dialog/NameManagerDialog.java
r33306 r33872 42 42 import org.openstreetmap.josm.Main; 43 43 import org.openstreetmap.josm.data.osm.Way; 44 import org.openstreetmap.josm.gui.MainApplication; 44 45 import org.openstreetmap.josm.gui.tagging.ac.AutoCompletingTextField; 45 46 import org.openstreetmap.josm.gui.tagging.ac.AutoCompletionList; 47 import org.openstreetmap.josm.gui.tagging.ac.AutoCompletionManager; 46 48 import org.openstreetmap.josm.plugins.namemanager.countryData.Country; 47 49 import org.openstreetmap.josm.plugins.namemanager.countryData.CountryDataMemory; … … 176 178 tagNameAM = new AutoCompletingTextField(); 177 179 AutoCompletionList list = new AutoCompletionList(); 178 Main.getLayerManager().getEditLayer().data.getAutoCompletionManager().populateWithKeys(list);180 AutoCompletionManager.of(MainApplication.getLayerManager().getEditLayer().data).populateWithKeys(list); 179 181 tagNameAM.setAutoCompletionList(list); 180 182 labelTagValueAM = new JLabel(tr(TAG_VALUE)); … … 189 191 } 190 192 list.clear(); 191 Main.getLayerManager().getEditLayer().data.getAutoCompletionManager().populateWithTagValues(list, tagNameAM.getText()); 193 AutoCompletionManager.of(MainApplication.getLayerManager().getEditLayer().data) 194 .populateWithTagValues(list, tagNameAM.getText()); 192 195 tagValueAM.setAutoCompletionList(list); 193 196 } -
applications/editors/josm/plugins/namemanager/src/org/openstreetmap/josm/plugins/namemanager/utils/NameManagerUtils.java
r33305 r33872 18 18 import org.openstreetmap.josm.data.osm.Node; 19 19 import org.openstreetmap.josm.data.osm.Way; 20 import org.openstreetmap.josm.gui.MainApplication; 20 21 import org.openstreetmap.josm.plugins.namemanager.NameManagerPlugin; 21 22 import org.openstreetmap.josm.plugins.namemanager.countryData.Country; … … 53 54 Coordinate topLeftCorner = getTopLeftCorener(areaBorder); 54 55 List<Pair<Node, Node>> areaBorderLines = areaBorder.getNodePairs(true); 55 Collection<Way> ways = Main .getLayerManager().getEditDataSet().getWays();56 Collection<Way> ways = MainApplication.getLayerManager().getEditDataSet().getWays(); 56 57 ways: for (Way way : ways) { 57 58 if (areaBorder == way) {
Note:
See TracChangeset
for help on using the changeset viewer.