Changeset 22477 in osm for applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap
- Timestamp:
- 2010-07-29T08:49:30+02:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions/qa/TurnRestrictionLegSplitRequiredError.java
r20622 r22477 12 12 import org.openstreetmap.josm.actions.SplitWayAction.SplitWayResult; 13 13 import org.openstreetmap.josm.data.osm.Node; 14 import org.openstreetmap.josm.data.osm.OsmPrimitive; 14 15 import org.openstreetmap.josm.data.osm.Way; 15 16 import org.openstreetmap.josm.gui.DefaultNameFormatter; … … 28 29 29 30 /** 30 * Create the issue 31 * 32 * @param parent the parent model 31 * Create the issue 32 * 33 * @param parent the parent model 33 34 * @param role the role of the way which should be splitted 34 35 * @param from the way with role 'from' … … 46 47 47 48 @Override 48 public String getText() { 49 public String getText() { 49 50 String msg = null; 50 51 switch(role){ … … 55 56 role.getOsmRole(), 56 57 interesect.getDisplayName(DefaultNameFormatter.getInstance()), 57 to.getDisplayName(DefaultNameFormatter.getInstance()) 58 to.getDisplayName(DefaultNameFormatter.getInstance()) 58 59 ); 59 60 break; … … 70 71 return msg; 71 72 } 72 73 73 74 class SplitAction extends AbstractAction { 74 75 public SplitAction() { … … 83 84 } 84 85 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() 88 90 ); 89 91 if (result != null){ 90 92 Main.main.undoRedo.add(result.getCommand()); 91 93 } 92 } 94 } 93 95 } 94 96 }
Note:
See TracChangeset
for help on using the changeset viewer.