Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.plugins.seamapeditor;
|
---|
3 |
|
---|
4 | import org.openstreetmap.josm.gui.MainApplication;
|
---|
5 | import org.openstreetmap.josm.gui.MainMenu;
|
---|
6 | import org.openstreetmap.josm.gui.MapFrame;
|
---|
7 | import org.openstreetmap.josm.plugins.Plugin;
|
---|
8 | import org.openstreetmap.josm.plugins.PluginInformation;
|
---|
9 |
|
---|
10 | public 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.