Changeset 34466 in osm for applications/editors/josm/plugins/imagery_offset_db/src/iodb/ImageryOffsetPlugin.java
- Timestamp:
- 2018-08-15T02:05:27+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/imagery_offset_db/src/iodb/ImageryOffsetPlugin.java
r33774 r34466 10 10 import javax.swing.JMenu; 11 11 12 import org.openstreetmap.josm.Main;13 12 import org.openstreetmap.josm.data.Version; 14 13 import org.openstreetmap.josm.gui.MainApplication; … … 16 15 import org.openstreetmap.josm.plugins.Plugin; 17 16 import org.openstreetmap.josm.plugins.PluginInformation; 17 import org.openstreetmap.josm.spi.preferences.Config; 18 18 19 19 /** … … 49 49 50 50 // an ugly hack to add this plugin to the toolbar 51 if ( Main.pref.getBoolean("iodb.modify.toolbar", true)) {51 if (Config.getPref().getBoolean("iodb.modify.toolbar", true)) { 52 52 List<String> toolbar = new LinkedList<>(ToolbarPreferences.getToolString()); 53 53 if (!toolbar.contains("getoffset")) { 54 54 toolbar.add("getoffset"); 55 Main.pref.putList("toolbar", toolbar);55 Config.getPref().putList("toolbar", toolbar); 56 56 MainApplication.getToolbar().refreshToolbarControl(); 57 57 } 58 Main.pref.putBoolean("iodb.modify.toolbar", false);58 Config.getPref().putBoolean("iodb.modify.toolbar", false); 59 59 } 60 60 }
Note:
See TracChangeset
for help on using the changeset viewer.
