Changeset 33226 in osm for applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/Address.java
- Timestamp:
- 2017-04-12T00:46:52+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/Address.java
r32950 r33226 56 56 import org.openstreetmap.josm.data.osm.Way; 57 57 import org.openstreetmap.josm.data.osm.WaySegment; 58 import org.openstreetmap.josm.gui.MapFrame;59 58 import org.openstreetmap.josm.gui.MapView; 60 59 import org.openstreetmap.josm.tools.GBC; … … 91 90 private boolean ctrl; 92 91 93 public Address(MapFrame mapFrame) { 92 /** 93 * Constructs a new {@code Address} map mode. 94 */ 95 public Address() { 94 96 super(tr("Add address"), "buildings", 95 97 tr("Helping tool for tag address"), … … 97 99 Shortcut.registerShortcut("mapmode:cadastre-fr-buildings", tr("Mode: {0}", tr("CadastreFR - Buildings")), KeyEvent.VK_E, Shortcut.DIRECT), 98 100 // CHECKSTYLE.ON: LineLength 99 mapFrame,getCursor());101 getCursor()); 100 102 } 101 103 … … 114 116 Main.map.mapView.removeMouseListener(this); 115 117 } 116 // dialog.setVisible(false);117 118 // kill the window completely to fix an issue on some linux distro and full screen mode. 118 119 if (dialog != null) { … … 510 511 @Override 511 512 public void windowClosing(WindowEvent arg) { 512 exitMode(); 513 if (Boolean.TRUE.equals(getValue("active"))) { 514 exitMode(); 515 } 513 516 Main.map.selectMapMode((MapMode) Main.map.getDefaultButtonAction()); 514 517 }
Note:
See TracChangeset
for help on using the changeset viewer.
