Changeset 34551 in osm for applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/TheRing.java
- Timestamp:
- 2018-08-18T20:08:26+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/TheRing.java
r33694 r34551 12 12 import javax.swing.JOptionPane; 13 13 14 import org.openstreetmap.josm.Main;15 14 import org.openstreetmap.josm.command.AddCommand; 16 15 import org.openstreetmap.josm.command.ChangeCommand; … … 24 23 import org.openstreetmap.josm.data.osm.Way; 25 24 import org.openstreetmap.josm.gui.MainApplication; 25 import org.openstreetmap.josm.spi.preferences.Config; 26 26 import org.openstreetmap.josm.tools.Geometry; 27 27 import org.openstreetmap.josm.tools.Geometry.PolygonIntersection; … … 143 143 } 144 144 if (pos == 0 && nodes1.size() == nodes2.size()) { 145 JOptionPane.showMessageDialog(Main .parent,145 JOptionPane.showMessageDialog(MainApplication.getMainFrame(), 146 146 tr("Two rings are equal, and this must not be."), tr("Multipolygon from rings"), JOptionPane.ERROR_MESSAGE); 147 147 return null; … … 331 331 Way sourceCopy = new Way(source); 332 332 if (createMultipolygon) { 333 Collection<String> linearTags = Main.pref.getList(PREF_MULTIPOLY + "lineartags", CreateMultipolygonAction.DEFAULT_LINEAR_TAGS);333 Collection<String> linearTags = Config.getPref().getList(PREF_MULTIPOLY + "lineartags", CreateMultipolygonAction.DEFAULT_LINEAR_TAGS); 334 334 relation = new Relation(); 335 335 relation.put("type", "multipolygon");
Note:
See TracChangeset
for help on using the changeset viewer.
