Changeset 28622 in osm
- Timestamp:
- 2012-08-24T02:19:02+02:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/ElevationProfilePlugin.java
r28149 r28622 29 29 */ 30 30 public class ElevationProfilePlugin extends Plugin { 31 protected static ElevationProfileDialog eleProfileDlg;31 32 32 private ElevationMapMode eleMode; 33 33 private IconToggleButton eleModeButton; … … 42 42 43 43 try { 44 eleProfileDlg = new ElevationProfileDialog();45 46 44 eleMode = new ElevationMapMode("Elevation profile", Main.map); 47 45 eleModeButton = new IconToggleButton(eleMode); … … 62 60 63 61 if (newFrame != null) { 62 newFrame.toolGroup.add(eleModeButton); 63 ElevationProfileDialog eleProfileDlg = new ElevationProfileDialog(); 64 eleProfileDlg.addModelListener(eleMode); 65 eleProfileDlg.setProfileLayer(getCurrentLayer()); 64 66 newFrame.addToggleDialog(eleProfileDlg); 65 eleProfileDlg.addModelListener(eleMode);66 }67 68 if(Main.map != null){69 Main.map.toolGroup.add(eleModeButton);70 eleProfileDlg.setProfileLayer(getCurrentLayer());71 67 } 72 68 }
Note:
See TracChangeset
for help on using the changeset viewer.