private static boolean hasTargets(final Geocache cache) {
        for (final Waypoint waypoint : cache.getWaypoints()) {
            if (waypoint.getCoords() != null) {
                return true;
            }
        }
        return false;
    }
Creates a new instance. ActionProvider classes should always implement a
constructor that takes a single Context parameter for inflating from menu XML.

@param context Context for accessing resources.
main/src/main/java/cgeo/geocaching/ui/WaypointSelectionActionProvider.java