<NME> AbstractRadarApp.java
<BEF> ADDFILE
<MSG> #3581: have waypoint name in radar
<DFF> @@ -0,0 +1,44 @@
+package cgeo.geocaching.apps.cache.navi;
+
+import cgeo.geocaching.Geocache;
+import cgeo.geocaching.Waypoint;
+import cgeo.geocaching.geopoint.Geopoint;
+
+import android.app.Activity;
+import android.content.Intent;
+
+public abstract class AbstractRadarApp extends AbstractPointNavigationApp {
+
+    private final String intentAction;
+
+    protected AbstractRadarApp(final String name, final int id, final String intent, final String packageName) {
+        super(name, id, intent, packageName);
+        this.intentAction = intent;
+    }
+
+    private Intent createIntent(final Geopoint point) {
+        final Intent intent = new Intent(intentAction);
+        addCoordinates(intent, point);
+        return intent;
+    }
+
+    @Override
+    public void navigate(final Activity activity, final Geopoint point) {
+        activity.startActivity(createIntent(point));
+    }
+
+    @Override
+    public void navigate(final Activity activity, final Geocache cache) {
+        final Intent intent = createIntent(cache.getCoords());
+        addIntentExtras(intent, cache);
+        activity.startActivity(intent);
+    }
+
+    @Override
+    public void navigate(final Activity activity, final Waypoint waypoint) {
+        final Intent intent = createIntent(waypoint.getCoords());
+        addIntentExtras(intent, waypoint);
+        activity.startActivity(intent);
+    }
+
+}

#3581: have waypoint name in radar