source: osm/applications/editors/josm/plugins/smed/src/org/openstreetmap/josm/plugins/seamapeditor/SmedPlugin.java@ 34588

Last change on this file since 34588 was 34588, checked in by donvip, 6 years ago

rename packages, fix warning

File size: 747 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.plugins.seamapeditor;
3
4import org.openstreetmap.josm.gui.MainApplication;
5import org.openstreetmap.josm.gui.MainMenu;
6import org.openstreetmap.josm.gui.MapFrame;
7import org.openstreetmap.josm.plugins.Plugin;
8import org.openstreetmap.josm.plugins.PluginInformation;
9
10public class SmedPlugin extends Plugin {
11
12 SmedAction dialog = new SmedAction();
13
14 public SmedPlugin(PluginInformation info) {
15 super(info);
16 MainMenu.add(MainApplication.getMenu().toolsMenu, dialog);
17 }
18
19 @Override
20 public void mapFrameInitialized(MapFrame oldFrame, MapFrame newFrame) {
21 if (newFrame == null) {
22 dialog.closeDialog();
23 }
24 }
25}
Note: See TracBrowser for help on using the repository browser.