Changeset 34530 in osm for applications/editors/josm/plugins/merge-overlap/src
- Timestamp:
- 2018-08-18T18:48:33+02:00 (6 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
r34056 r34530 19 19 import java.util.Set; 20 20 21 import org.openstreetmap.josm.Main;22 21 import org.openstreetmap.josm.actions.JosmAction; 23 22 import org.openstreetmap.josm.command.ChangeCommand; … … 27 26 import org.openstreetmap.josm.command.SplitWayCommand; 28 27 import org.openstreetmap.josm.corrector.ReverseWayTagCorrector; 28 import org.openstreetmap.josm.data.UndoRedoHandler; 29 29 import org.openstreetmap.josm.data.osm.Node; 30 30 import org.openstreetmap.josm.data.osm.NodeGraph; … … 229 229 230 230 // Commit 231 Main.main.undoRedo.add(new SequenceCommand(tr("Merge Overlap (combine)"), cmds));231 UndoRedoHandler.getInstance().add(new SequenceCommand(tr("Merge Overlap (combine)"), cmds)); 232 232 getLayerManager().getEditDataSet().setSelected(sel); 233 233 MainApplication.getMap().repaint(); -
applications/editors/josm/plugins/merge-overlap/src/mergeoverlap/hack/MyCombinePrimitiveResolverDialog.java
r34056 r34530 8 8 import java.util.Map; 9 9 10 import org.openstreetmap.josm.Main;11 10 import org.openstreetmap.josm.command.ChangePropertyCommand; 12 11 import org.openstreetmap.josm.command.Command; … … 15 14 import org.openstreetmap.josm.data.osm.TagCollection; 16 15 import org.openstreetmap.josm.data.osm.Way; 16 import org.openstreetmap.josm.gui.MainApplication; 17 17 import org.openstreetmap.josm.gui.conflict.tags.CombinePrimitiveResolverDialog; 18 18 import org.openstreetmap.josm.gui.conflict.tags.TagConflictResolverModel; … … 66 66 public static MyCombinePrimitiveResolverDialog getInstance() { 67 67 if (instance == null) { 68 GuiHelper.runInEDTAndWait(() -> instance = new MyCombinePrimitiveResolverDialog(Main .parent));68 GuiHelper.runInEDTAndWait(() -> instance = new MyCombinePrimitiveResolverDialog(MainApplication.getMainFrame())); 69 69 } 70 70 return instance; -
applications/editors/josm/plugins/merge-overlap/src/mergeoverlap/hack/MyRelationMemberConflictResolverModel.java
r33154 r34530 7 7 import java.util.Map; 8 8 9 import mergeoverlap.MergeOverlapAction;10 11 9 import org.openstreetmap.josm.command.Command; 12 10 import org.openstreetmap.josm.data.osm.OsmPrimitive; … … 16 14 import org.openstreetmap.josm.gui.conflict.tags.RelationMemberConflictDecision; 17 15 import org.openstreetmap.josm.gui.conflict.tags.RelationMemberConflictResolverModel; 16 17 import mergeoverlap.MergeOverlapAction; 18 18 19 19 /**
Note:
See TracChangeset
for help on using the changeset viewer.