Changeset 24125 in osm
- Timestamp:
- 2010-11-07T18:57:46+01:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/turnrestrictions
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/turnrestrictions/build.xml
r23571 r24125 31 31 32 32 <!-- enter the SVN commit message --> 33 <property name="commit.message" value=" Migration to Java6 - making use of JTable::setFillsViewportHeight()" />33 <property name="commit.message" value="Fixing #5614 - JOSM Plugin turn Restrictions" /> 34 34 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 35 35 <property name="plugin.main.version" value="3518" /> … … 267 267 <pathelement location="${eclipse.plugin.dir}/org.junit_4.8.1.v4_8_1_v20100427-1100\junit.jar" /> 268 268 </path> 269 270 <path id="fest.library.path"> 271 <fileset dir="test/lib"> 272 <include name="fest-*.jar" /> 273 <include name="jcp-*.jar" /> 274 </fileset> 275 </path> 269 276 270 277 <path id="test.class.path"> … … 273 280 <path refid="groovy.path" /> 274 281 <path refid="junit.path" /> 282 <path refid="fest.library.path" /> 275 283 </path> 276 284 … … 278 286 <path refid="junit.path" /> 279 287 <path refid="groovy.path" /> 288 <path refid="fest.library.path" /> 280 289 <pathelement location="${josm}" /> 281 290 <pathelement location="${test.build.dir}" /> -
applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions/TurnRestrictionBuilder.java
r23593 r24125 1 1 package org.openstreetmap.josm.plugins.turnrestrictions; 2 3 import static org.openstreetmap.josm.plugins.turnrestrictions.TurnRestrictionBuilder.determineWayJoinOrientation;4 import static org.openstreetmap.josm.plugins.turnrestrictions.TurnRestrictionBuilder.isEndNode;5 import static org.openstreetmap.josm.plugins.turnrestrictions.TurnRestrictionBuilder.isStartNode;6 2 7 3 import java.util.ArrayList; -
applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions/editor/TurnRestrictionEditor.java
r23571 r24125 87 87 private JosmSelectionPanel pnlJosmSelection; 88 88 private BasicEditorPanel pnlBasicEditor; 89 private AdvancedEditorPanel pnlAdvancedEditor;90 private IssuesView pnlIssuesView;91 89 private TurnRestrictionEditorModel editorModel; 92 90 private JTabbedPane tpEditors; … … 102 100 pnl.setLayout(new FlowLayout(FlowLayout.CENTER)); 103 101 104 pnl.add(new SideButton(new OKAction())); 105 pnl.add(new SideButton(new CancelAction())); 106 107 pnl.add(new SideButton(new ContextSensitiveHelpAction(ht("/Plugins/turnrestrictions#TurnRestrictionEditor")))); 102 SideButton b; 103 pnl.add(b = new SideButton(new OKAction())); 104 b.setName("btnOK"); 105 pnl.add(b = new SideButton(new CancelAction())); 106 b.setName("btnCancel"); 107 pnl.add(b = new SideButton(new ContextSensitiveHelpAction(ht("/Plugins/turnrestrictions#TurnRestrictionEditor")))); 108 b.setName("btnHelp"); 108 109 return pnl; 109 110 } … … 134 135 tpEditors.setToolTipTextAt(0, tr("Edit basic attributes of a turn restriction")); 135 136 136 tpEditors.add( pnlAdvancedEditor =new AdvancedEditorPanel(editorModel));137 tpEditors.add(new AdvancedEditorPanel(editorModel)); 137 138 tpEditors.setTitleAt(1, tr("Advanced")); 138 139 tpEditors.setToolTipTextAt(1, tr("Edit the raw tags and members of this turn restriction")); 139 140 140 tpEditors.add( pnlIssuesView =new IssuesView(editorModel.getIssuesModel()));141 tpEditors.add(new IssuesView(editorModel.getIssuesModel())); 141 142 tpEditors.setTitleAt(2, tr("Errors/Warnings")); 142 143 tpEditors.setToolTipTextAt(2, tr("Show errors and warnings related to this turn restriction")); … … 650 651 return; 651 652 } 652 if (getTurnRestriction() == null ) {653 if (getTurnRestriction() == null || getTurnRestriction().getDataSet() == null) { 653 654 applyNewTurnRestriction(); 654 655 return; … … 693 694 return; 694 695 } 695 if (getTurnRestriction() == null ) {696 if (getTurnRestriction() == null || getTurnRestriction().getDataSet() == null) { 696 697 // it's a new turn restriction. Try to save it and close the dialog 697 698 if (applyNewTurnRestriction()) { -
applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions/editor/TurnRestrictionEditorModel.java
r23571 r24125 220 220 CheckParameterUtil.ensureParameterNotNull(turnRestriction, "turnRestriction"); 221 221 TagCollection tags = tagEditorModel.getTagCollection(); 222 logger.info(tags.toString());223 222 turnRestriction.removeAll(); 224 223 tags.applyTo(turnRestriction);
Note:
See TracChangeset
for help on using the changeset viewer.