Changeset 34203 in osm
- Timestamp:
- 2018-05-19T11:52:32+02:00 (7 years ago)
- Location:
- applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant/PTAssistantPlugin.java
r34138 r34203 21 21 import org.openstreetmap.josm.plugins.pt_assistant.actions.AddStopPositionAction; 22 22 import org.openstreetmap.josm.plugins.pt_assistant.actions.CreatePlatformNodeAction; 23 import org.openstreetmap.josm.plugins.pt_assistant.actions.DoubleSplitAction; 23 24 import org.openstreetmap.josm.plugins.pt_assistant.actions.EdgeSelectionAction; 24 import org.openstreetmap.josm.plugins.pt_assistant.actions.DoubleSplitAction;25 25 import org.openstreetmap.josm.plugins.pt_assistant.actions.EditHighlightedRelationsAction; 26 import org.openstreetmap.josm.plugins.pt_assistant.actions.PTWizardAction; 26 27 import org.openstreetmap.josm.plugins.pt_assistant.actions.RepeatLastFixAction; 27 28 import org.openstreetmap.josm.plugins.pt_assistant.actions.SortPTRouteMembersAction; … … 75 76 editHighlightedRelationsMenu = MainMenu.add(MainApplication.getMenu().toolsMenu, editHighlightedRelationsAction); 76 77 MainMenu.add(MainApplication.getMenu().toolsMenu, new SplitRoundaboutAction()); 78 MainMenu.add(MainApplication.getMenu().toolsMenu, new CreatePlatformNodeAction()); 77 79 MainMenu.add(MainApplication.getMenu().toolsMenu, new SortPTRouteMembersAction()); 78 MainMenu.add(MainApplication.getMenu().toolsMenu, new CreatePlatformNodeAction()); 80 MainMenu.add(MainApplication.getMenu().helpMenu, new PTWizardAction()); 81 initialiseWizard(); 79 82 } 80 83 … … 146 149 editHighlightedRelationsMenu.setEnabled(false)); 147 150 } 151 152 private static void initialiseWizard() { 153 PTWizardAction wizard = new PTWizardAction(); 154 wizard.noDialogBox = true; 155 wizard.actionPerformed(null); 156 } 148 157 } -
applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant/actions/FixTask.java
r34193 r34203 86 86 monitor.subTask(tr("Updating map ...")); 87 87 SwingUtilities.invokeAndWait(() -> { 88 MainApplication.undoRedo.afterAdd( null);88 MainApplication.undoRedo.afterAdd(); 89 89 MainApplication.getMap().repaint(); 90 90 }); -
applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant/validation/SegmentChecker.java
r34193 r34203 942 942 ChangeCommand changeCommand = new ChangeCommand(originalRelation, modifiedRelation); 943 943 MainApplication.undoRedo.addNoRedraw(changeCommand); 944 MainApplication.undoRedo.afterAdd( changeCommand);944 MainApplication.undoRedo.afterAdd(); 945 945 PTRouteSegment wrongSegment = wrongSegments.get(testError); 946 946 wrongSegments.remove(testError); … … 1077 1077 ChangeCommand changeCommand = new ChangeCommand(originalRelation, modifiedRelation); 1078 1078 MainApplication.undoRedo.addNoRedraw(changeCommand); 1079 MainApplication.undoRedo.afterAdd( changeCommand);1079 MainApplication.undoRedo.afterAdd(); 1080 1080 wrongSegmentsToRemove.add(testError); 1081 1081 }
Note:
See TracChangeset
for help on using the changeset viewer.