Changeset 29408 in osm for applications/editors/josm/plugins/imagery_offset_db/src/iodb
- Timestamp:
- 2013-03-26T19:54:03+01:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/imagery_offset_db/src/iodb/ImageryOffsetPlugin.java
r29384 r29408 2 2 3 3 import java.awt.event.KeyEvent; 4 import java.util.*; 4 5 import javax.swing.JMenu; 5 6 import org.openstreetmap.josm.Main; … … 33 34 offsetMenu.add(getAction); 34 35 offsetMenu.add(storeAction); 36 37 // an ugly hack to add this plugin to the toolbar 38 Collection<String> toolbar = new LinkedList<String>(Main.toolbar.getToolString()); 39 if( !toolbar.contains("getoffset") && Main.pref.getBoolean("iodb.modify.toolbar", true) ) { 40 toolbar.add("getoffset"); 41 Main.pref.putCollection("toolbar", toolbar); 42 Main.pref.put("iodb.modify.toolbar", false); 43 Main.toolbar.refreshToolbarControl(); 44 } 35 45 } 36 46 }
Note:
See TracChangeset
for help on using the changeset viewer.