Ignore:
Timestamp:
2010-07-29T08:49:30+02:00 (14 years ago)
Author:
jttt
Message:

Adapt to latest JOSM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions/qa/TurnRestrictionLegSplitRequiredError.java

    r20622 r22477  
    1212import org.openstreetmap.josm.actions.SplitWayAction.SplitWayResult;
    1313import org.openstreetmap.josm.data.osm.Node;
     14import org.openstreetmap.josm.data.osm.OsmPrimitive;
    1415import org.openstreetmap.josm.data.osm.Way;
    1516import org.openstreetmap.josm.gui.DefaultNameFormatter;
     
    2829
    2930        /**
    30          * Create the issue 
    31          * 
    32          * @param parent the parent model 
     31         * Create the issue
     32         *
     33         * @param parent the parent model
    3334         * @param role the role of the way which should be splitted
    3435         * @param from the way with role 'from'
     
    4647
    4748        @Override
    48         public String getText() {               
     49        public String getText() {
    4950                String msg = null;
    5051                switch(role){
     
    5556                                role.getOsmRole(),
    5657                                interesect.getDisplayName(DefaultNameFormatter.getInstance()),
    57                                 to.getDisplayName(DefaultNameFormatter.getInstance())                           
     58                                to.getDisplayName(DefaultNameFormatter.getInstance())
    5859                        );
    5960                        break;
     
    7071                return msg;
    7172        }
    72        
     73
    7374        class SplitAction extends AbstractAction {
    7475                public SplitAction() {
     
    8384                        }
    8485                        SplitWayResult result = SplitWayAction.split(
    85                                         parent.getEditorModel().getLayer(),
    86                                         way,
    87                                         Collections.singletonList(interesect)
     86                                        parent.getEditorModel().getLayer(),
     87                                        way,
     88                                        Collections.singletonList(interesect),
     89                                        Collections.<OsmPrimitive>emptyList()
    8890                        );
    8991                        if (result != null){
    9092                                Main.main.undoRedo.add(result.getCommand());
    9193                        }
    92                 }               
     94                }
    9395        }
    9496}
Note: See TracChangeset for help on using the changeset viewer.