Changeset 29905 in osm
- Timestamp:
- 2013-09-01T16:18:42+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed/src/smed/Smed.java
r29895 r29905 3 3 import org.openstreetmap.josm.Main; 4 4 import org.openstreetmap.josm.gui.MainMenu; 5 import org.openstreetmap.josm.gui.MapFrame; 5 6 import org.openstreetmap.josm.plugins.Plugin; 6 7 import org.openstreetmap.josm.plugins.PluginInformation; … … 8 9 public class Smed extends Plugin { 9 10 11 SmedAction dialog = new SmedAction(); 12 10 13 public Smed(PluginInformation info) { 11 super(info); 12 MainMenu.add(Main.main.menu.toolsMenu, new SmedAction()); 13 } 14 super(info); 15 MainMenu.add(Main.main.menu.toolsMenu, dialog); 16 } 17 18 public void mapFrameInitialized(MapFrame oldFrame, MapFrame newFrame) { 19 if (newFrame == null) { 20 dialog.closeDialog(); 21 } 22 } 14 23 }
Note:
See TracChangeset
for help on using the changeset viewer.