Changeset 32528 in osm for applications/editors/josm/plugins/imagery_offset_db/src/iodb/ImageryOffsetPlugin.java
- Timestamp:
- 2016-07-02T03:55:03+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/imagery_offset_db/src/iodb/ImageryOffsetPlugin.java
r31646 r32528 1 // License: WTFPL. For details, see LICENSE file. 1 2 package iodb; 2 3 … … 31 32 * or completely unsuitable for imagery offset actions. 32 33 */ 33 public ImageryOffsetPlugin( PluginInformation info) {34 public ImageryOffsetPlugin(PluginInformation info) { 34 35 super(info); 35 36 … … 42 43 JMenu offsetMenu = version < 5803 43 44 ? Main.main.menu.addMenu("Offset", tr("Offset"), KeyEvent.VK_O, 6, "help") 44 : Main.main.menu.imageryMenu; 45 offsetMenu.add(getAction); 46 offsetMenu.add(storeAction); 45 : Main.main.menu.imageryMenu; 46 offsetMenu.add(getAction); 47 offsetMenu.add(storeAction); 47 48 48 // an ugly hack to add this plugin to the toolbar 49 if(Main.pref.getBoolean("iodb.modify.toolbar", true)) {50 Collection<String> toolbar = new LinkedList<>(ToolbarPreferences.getToolString()); 51 if(!toolbar.contains("getoffset")) {52 toolbar.add("getoffset"); 53 Main.pref.putCollection("toolbar", toolbar); 54 Main.toolbar.refreshToolbarControl(); 55 } 56 Main.pref.put("iodb.modify.toolbar", false); 57 } 49 // an ugly hack to add this plugin to the toolbar 50 if (Main.pref.getBoolean("iodb.modify.toolbar", true)) { 51 Collection<String> toolbar = new LinkedList<>(ToolbarPreferences.getToolString()); 52 if (!toolbar.contains("getoffset")) { 53 toolbar.add("getoffset"); 54 Main.pref.putCollection("toolbar", toolbar); 55 Main.toolbar.refreshToolbarControl(); 56 } 57 Main.pref.put("iodb.modify.toolbar", false); 58 } 58 59 } 59 60 }
Note:
See TracChangeset
for help on using the changeset viewer.
