Index: applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/ElevationProfilePlugin.java
===================================================================
--- applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/ElevationProfilePlugin.java	(revision 29183)
+++ applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/ElevationProfilePlugin.java	(revision 29611)
@@ -60,5 +60,5 @@
 		
 		if (newFrame != null) {
-			newFrame.toolGroup.add(eleModeButton);
+			newFrame.addMapMode(eleModeButton);
 			ElevationProfileDialog eleProfileDlg = new ElevationProfileDialog();
 			eleProfileDlg.addModelListener(eleMode);
@@ -80,5 +80,3 @@
 		return currentLayer;
 	}
-
-	
 }
