Changeset 13852 in josm for trunk/src/org/openstreetmap/josm/actions/relation/ExportRelationToGpxAction.java
- Timestamp:
- 2018-05-26T20:11:44+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/relation/ExportRelationToGpxAction.java
r13292 r13852 19 19 import java.util.ListIterator; 20 20 import java.util.Map; 21 import java.util.Set; 21 22 import java.util.Stack; 22 23 … … 61 62 62 63 /** Mode of this ExportToGpxAction */ 63 protected final EnumSet<Mode> mode;64 protected final Set<Mode> mode; 64 65 65 66 /** Primitives this action works on */ … … 76 77 * @param mode which mode to use, see {@code ExportRelationToGpxAction.Mode} 77 78 */ 78 public ExportRelationToGpxAction( EnumSet<Mode> mode) {79 public ExportRelationToGpxAction(Set<Mode> mode) { 79 80 super(name(mode), mode.contains(TO_FILE) ? "exportgpx" : "dialogs/layerlist", tooltip(mode), 80 81 null, false, null, false); … … 83 84 } 84 85 85 private static String name( EnumSet<Mode> mode) {86 private static String name(Set<Mode> mode) { 86 87 if (mode.contains(TO_FILE)) { 87 88 if (mode.contains(FROM_FIRST_MEMBER)) { … … 99 100 } 100 101 101 private static String tooltip( EnumSet<Mode> mode) {102 private static String tooltip(Set<Mode> mode) { 102 103 if (mode.contains(FROM_FIRST_MEMBER)) { 103 104 return tr("Flatten this relation to a single gpx track recursively, " +
Note:
See TracChangeset
for help on using the changeset viewer.
