Changeset 34203 in osm


Ignore:
Timestamp:
2018-05-19T11:52:32+02:00 (7 years ago)
Author:
biswesh
Message:

Add PT Wizard

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  
    2121import org.openstreetmap.josm.plugins.pt_assistant.actions.AddStopPositionAction;
    2222import org.openstreetmap.josm.plugins.pt_assistant.actions.CreatePlatformNodeAction;
     23import org.openstreetmap.josm.plugins.pt_assistant.actions.DoubleSplitAction;
    2324import org.openstreetmap.josm.plugins.pt_assistant.actions.EdgeSelectionAction;
    24 import org.openstreetmap.josm.plugins.pt_assistant.actions.DoubleSplitAction;
    2525import org.openstreetmap.josm.plugins.pt_assistant.actions.EditHighlightedRelationsAction;
     26import org.openstreetmap.josm.plugins.pt_assistant.actions.PTWizardAction;
    2627import org.openstreetmap.josm.plugins.pt_assistant.actions.RepeatLastFixAction;
    2728import org.openstreetmap.josm.plugins.pt_assistant.actions.SortPTRouteMembersAction;
     
    7576        editHighlightedRelationsMenu = MainMenu.add(MainApplication.getMenu().toolsMenu, editHighlightedRelationsAction);
    7677        MainMenu.add(MainApplication.getMenu().toolsMenu, new SplitRoundaboutAction());
     78        MainMenu.add(MainApplication.getMenu().toolsMenu, new CreatePlatformNodeAction());
    7779        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();
    7982    }
    8083
     
    146149        editHighlightedRelationsMenu.setEnabled(false));
    147150    }
     151
     152    private static void initialiseWizard() {
     153            PTWizardAction wizard = new PTWizardAction();
     154            wizard.noDialogBox = true;
     155        wizard.actionPerformed(null);
     156    }
    148157}
  • applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant/actions/FixTask.java

    r34193 r34203  
    8686            monitor.subTask(tr("Updating map ..."));
    8787            SwingUtilities.invokeAndWait(() -> {
    88                 MainApplication.undoRedo.afterAdd(null);
     88                MainApplication.undoRedo.afterAdd();
    8989                MainApplication.getMap().repaint();
    9090            });
  • applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant/validation/SegmentChecker.java

    r34193 r34203  
    942942        ChangeCommand changeCommand = new ChangeCommand(originalRelation, modifiedRelation);
    943943        MainApplication.undoRedo.addNoRedraw(changeCommand);
    944         MainApplication.undoRedo.afterAdd(changeCommand);
     944        MainApplication.undoRedo.afterAdd();
    945945        PTRouteSegment wrongSegment = wrongSegments.get(testError);
    946946        wrongSegments.remove(testError);
     
    10771077                ChangeCommand changeCommand = new ChangeCommand(originalRelation, modifiedRelation);
    10781078                MainApplication.undoRedo.addNoRedraw(changeCommand);
    1079                 MainApplication.undoRedo.afterAdd(changeCommand);
     1079                MainApplication.undoRedo.afterAdd();
    10801080                wrongSegmentsToRemove.add(testError);
    10811081            }
Note: See TracChangeset for help on using the changeset viewer.