Changeset 24125 in osm for applications/editors/josm/plugins/turnrestrictions/src/org
- Timestamp:
- 2010-11-07T18:57:46+01:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
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.