mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-25 05:23:51 +00:00
added EmbeddedMapAndWindChart to build.properties
This commit is contained in:
1 parent
7c44a3247b
commit
f1bdd1c792
2 files changed
+19
-2
No files matched your search
@@ -51,5 +51,7 @@ bin.includes = META-INF/,\
|
||||
AutoPlay.html,\
|
||||
Home.css,\
|
||||
Home.html,\
|
||||
SettingsDialog.css
|
||||
SettingsDialog.css,\
|
||||
EmbeddedMapAndWindChart.css,\
|
||||
EmbeddedMapAndWindChart.html
|
||||
output.. = WEB-INF/classes/
|
||||
+16
-1
@@ -3,6 +3,7 @@ package com.sap.sailing.gwt.ui.shared;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.HashMap;
|
||||
import java.util.LinkedHashSet;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@@ -21,7 +22,21 @@ public class RaceCourseDTO implements IsSerializable {
|
||||
}
|
||||
|
||||
public RaceCourseDTO(List<WaypointDTO> waypoints) {
|
||||
this(waypoints, null);
|
||||
this(waypoints, getMarksFromWaypoints(waypoints));
|
||||
}
|
||||
|
||||
private static List<MarkDTO> getMarksFromWaypoints(List<WaypointDTO> waypoints) {
|
||||
final LinkedHashSet<MarkDTO> marks = new LinkedHashSet<>();
|
||||
for (final WaypointDTO waypoint : waypoints) {
|
||||
for (final MarkDTO m : waypoint.controlPoint.getMarks()) {
|
||||
marks.add(m);
|
||||
}
|
||||
}
|
||||
final List<MarkDTO> result = new ArrayList<>();
|
||||
for (final MarkDTO m : marks) {
|
||||
result.add(m);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
public RaceCourseDTO(List<WaypointDTO> waypoints, List<MarkDTO> allMarks) {
|
||||
|
||||
Reference in new issue
Block a user