Changeset 22477 in osm for applications/editors/josm/plugins
- Timestamp:
- 2010-07-29T08:49:30+02:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/turnrestrictions
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/turnrestrictions/build.xml
r21706 r22477 33 33 <property name="commit.message" value="Update to josm core" /> 34 34 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 35 <property name="plugin.main.version" value="3 210" />35 <property name="plugin.main.version" value="3392" /> 36 36 37 37 <!-- … … 157 157 158 158 <!-- 159 ************************** Publishing the plugin *********************************** 159 ************************** Publishing the plugin *********************************** 160 160 --> 161 161 <!-- 162 ** extracts the JOSM release for the JOSM version in ../core and saves it in the 162 ** extracts the JOSM release for the JOSM version in ../core and saves it in the 163 163 ** property ${coreversion.info.entry.revision} 164 164 ** … … 209 209 210 210 <!-- 211 ** commits the plugin.jar 211 ** commits the plugin.jar 212 212 --> 213 213 <target name="commit-dist"> 214 214 <echo> 215 215 ***** Properties of published ${plugin.jar} ***** 216 Commit message : '${commit.message}' 216 Commit message : '${commit.message}' 217 217 Plugin-Mainversion: ${plugin.main.version} 218 218 JOSM build version: ${coreversion.info.entry.revision} 219 219 Plugin-Version : ${version.entry.commit.revision} 220 ***** / Properties of published ${plugin.jar} ***** 221 220 ***** / Properties of published ${plugin.jar} ***** 221 222 222 Now commiting ${plugin.jar} ... 223 223 </echo> -
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.