Line | |
---|
1 | package iodb;
|
---|
2 |
|
---|
3 | import java.awt.event.KeyEvent;
|
---|
4 | import javax.swing.JMenu;
|
---|
5 | import org.openstreetmap.josm.Main;
|
---|
6 | import org.openstreetmap.josm.plugins.Plugin;
|
---|
7 | import org.openstreetmap.josm.plugins.PluginInformation;
|
---|
8 | import static org.openstreetmap.josm.tools.I18n.marktr;
|
---|
9 |
|
---|
10 | /**
|
---|
11 | * Add some actions to the imagery menu.
|
---|
12 | *
|
---|
13 | * @author zverik
|
---|
14 | */
|
---|
15 | public class ImageryOffsetPlugin extends Plugin {
|
---|
16 | private GetImageryOffsetAction getAction;
|
---|
17 | private StoreImageryOffsetAction storeAction;
|
---|
18 |
|
---|
19 | public ImageryOffsetPlugin( PluginInformation info ) {
|
---|
20 | super(info);
|
---|
21 |
|
---|
22 | getAction = new GetImageryOffsetAction();
|
---|
23 | storeAction = new StoreImageryOffsetAction();
|
---|
24 |
|
---|
25 | JMenu offsetMenu = Main.main.menu.addMenu(marktr("Offset"), KeyEvent.VK_O, 6, "help");
|
---|
26 | offsetMenu.add(getAction);
|
---|
27 | offsetMenu.add(storeAction);
|
---|
28 | }
|
---|
29 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.