Changeset 33547 in osm for applications/editors/josm/plugins/imagery_offset_db/src/iodb/ImageryOffsetPlugin.java
- Timestamp:
- 2017-08-26T21:28:34+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/imagery_offset_db/src/iodb/ImageryOffsetPlugin.java
r32528 r33547 12 12 import org.openstreetmap.josm.Main; 13 13 import org.openstreetmap.josm.data.Version; 14 import org.openstreetmap.josm.gui.MainApplication; 14 15 import org.openstreetmap.josm.gui.preferences.ToolbarPreferences; 15 16 import org.openstreetmap.josm.plugins.Plugin; … … 42 43 int version = Version.getInstance().getVersion(); 43 44 JMenu offsetMenu = version < 5803 44 ? Main .main.menu.addMenu("Offset", tr("Offset"), KeyEvent.VK_O, 6, "help")45 : Main .main.menu.imageryMenu;45 ? MainApplication.getMenu().addMenu("Offset", tr("Offset"), KeyEvent.VK_O, 6, "help") 46 : MainApplication.getMenu().imageryMenu; 46 47 offsetMenu.add(getAction); 47 48 offsetMenu.add(storeAction); … … 53 54 toolbar.add("getoffset"); 54 55 Main.pref.putCollection("toolbar", toolbar); 55 Main .toolbar.refreshToolbarControl();56 MainApplication.getToolbar().refreshToolbarControl(); 56 57 } 57 58 Main.pref.put("iodb.modify.toolbar", false);
Note:
See TracChangeset
for help on using the changeset viewer.
