Changeset 33788 in osm for applications/editors/josm/plugins/NanoLog/src/nanolog/NanoLogPlugin.java
- Timestamp:
- 2017-11-05T20:04:04+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/NanoLog/src/nanolog/NanoLogPlugin.java
r32638 r33788 12 12 import org.openstreetmap.josm.Main; 13 13 import org.openstreetmap.josm.actions.JosmAction; 14 import org.openstreetmap.josm.gui.MainApplication; 14 15 import org.openstreetmap.josm.gui.MapFrame; 15 16 import org.openstreetmap.josm.plugins.Plugin; … … 24 25 public NanoLogPlugin(PluginInformation info) { 25 26 super(info); 26 Main .main.menu.fileMenu.insert(new OpenNanoLogLayerAction(), 4);27 MainApplication.getMenu().fileMenu.insert(new OpenNanoLogLayerAction(), 4); 27 28 } 28 29 … … 32 33 NanoLogPanel panel = new NanoLogPanel(); 33 34 newFrame.addToggleDialog(panel); 34 Main.getLayerManager().addLayerChangeListener(panel); 35 MainApplication.getLayerManager().addLayerChangeListener(panel); 35 36 } 36 37 } 37 38 38 private class OpenNanoLogLayerAction extends JosmAction { 39 private static class OpenNanoLogLayerAction extends JosmAction { 39 40 40 41 OpenNanoLogLayerAction() { … … 50 51 if (!entries.isEmpty()) { 51 52 NanoLogLayer layer = new NanoLogLayer(entries); 52 Main.getLayerManager().addLayer(layer); 53 MainApplication.getLayerManager().addLayer(layer); 53 54 layer.setupListeners(); 54 55 }
Note:
See TracChangeset
for help on using the changeset viewer.
