Changeset 33154 in osm for applications/editors/josm/plugins/merge-overlap/src/mergeoverlap
- Timestamp:
- 2017-02-25T00:59:57+01:00 (8 years ago)
- Location:
- applications/editors/josm/plugins/merge-overlap/src/mergeoverlap
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/merge-overlap/src/mergeoverlap/MergeOverlapAction.java
r33153 r33154 52 52 public class MergeOverlapAction extends JosmAction { 53 53 54 Map<Way, List<Relation>> relations = new HashMap<>(); 55 Map<Way, Way> oldWays = new HashMap<>(); 56 Map<Relation, Relation> newRelations = new HashMap<>(); 57 Set<Way> deletes = new HashSet<>(); 58 54 59 /** 55 60 * Constructs a new {@code MergeOverlapAction}. … … 61 66 Shortcut.ALT_CTRL), true); 62 67 } 63 64 Map<Way, List<Relation>> relations = new HashMap<>();65 Map<Way, Way> oldWays = new HashMap<>();66 Map<Relation, Relation> newRelations = new HashMap<>();67 Set<Way> deletes = new HashSet<>();68 68 69 69 /** -
applications/editors/josm/plugins/merge-overlap/src/mergeoverlap/hack/MyCombinePrimitiveResolverDialog.java
r30782 r33154 54 54 55 55 /** 56 * Constructs a new {@code MyCombinePrimitiveResolverDialog}. 57 * @param parent The parent component in which this dialog will be displayed. 58 */ 59 public MyCombinePrimitiveResolverDialog(Component parent) { 60 super(parent); 61 } 62 63 /** 56 64 * Replies the unique instance of the dialog 57 65 * … … 60 68 public static MyCombinePrimitiveResolverDialog getInstance() { 61 69 if (instance == null) { 62 GuiHelper.runInEDTAndWait(new Runnable() { 63 @Override public void run() { 64 instance = new MyCombinePrimitiveResolverDialog(Main.parent); 65 } 66 }); 70 GuiHelper.runInEDTAndWait(() -> instance = new MyCombinePrimitiveResolverDialog(Main.parent)); 67 71 } 68 72 return instance; … … 86 90 } 87 91 }; 88 }89 90 /**91 * Constructs a new {@code MyCombinePrimitiveResolverDialog}.92 * @param parent The parent component in which this dialog will be displayed.93 */94 public MyCombinePrimitiveResolverDialog(Component parent) {95 super(parent);96 92 } 97 93 -
applications/editors/josm/plugins/merge-overlap/src/mergeoverlap/hack/MyRelationMemberConflictResolverModel.java
r31967 r33154 67 67 public void populate(Collection<Relation> relations, Collection<Way> memberWays, Map<Way, Way> oldWays) { 68 68 decisions.clear(); 69 relations = relations == null ? new LinkedList< Relation>() : relations;70 memberWays = memberWays == null ? new LinkedList< Way>() : memberWays;69 relations = relations == null ? new LinkedList<>() : relations; 70 memberWays = memberWays == null ? new LinkedList<>() : memberWays; 71 71 for (Relation r : relations) { 72 72 for (Way w : memberWays) {
Note:
See TracChangeset
for help on using the changeset viewer.