Changeset 1554 in osm for utils/josm/plugins
- Timestamp:
- 2006-11-08T23:07:19+01:00 (18 years ago)
- Location:
- utils/josm/plugins/landsat/src/landsat
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
utils/josm/plugins/landsat/src/landsat/DownloadLandsatTask.java
r1553 r1554 52 52 } 53 53 54 public void setCheckBoxSelected(boolean b) { 55 checkBox.setSelected(b); 56 } 57 54 58 public String getPreferencesSuffix() { 55 59 return "landsat"; -
utils/josm/plugins/landsat/src/landsat/LandsatPlugin.java
r1553 r1554 13 13 DownloadLandsatTask task; 14 14 LandsatLayer landsatLayer; 15 boolean addedAction;16 15 17 16 public LandsatPlugin() { … … 27 26 28 27 public void mapFrameInitialized(MapFrame oldFrame, MapFrame newFrame) { 29 if(!addedAction) { 28 if(oldFrame==null && newFrame!=null) { 29 task.setEnabled(true); 30 31 /* re. bug report (Andy Robinson) 08/11/06... 32 * Neither of these seem to work 33 task.setCheckBoxSelected(false); 34 Main.pref.put("download.landsat",false); 35 */ 36 30 37 Main.map.toolBarActions.addSeparator(); 31 38 Main.map.toolBarActions.add(new IconToggleButton 32 39 (new LandsatAdjustAction(Main.map))); 33 addedAction=true;34 }35 if(oldFrame==null && newFrame!=null) {36 task.setEnabled(true);37 40 } else if (oldFrame!=null && newFrame==null ) { 38 41 task.setEnabled(false);
Note:
See TracChangeset
for help on using the changeset viewer.