Changeset 7801 in josm for trunk/src/org/openstreetmap/josm/corrector
- Timestamp:
- 2014-12-13T01:07:04+01:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/corrector/ReverseWayNoTagCorrector.java
r6524 r7801 29 29 // Hide default constructor for utils classes 30 30 } 31 31 32 32 /** 33 33 * Tags that imply a semantic meaning from the way direction and cannot be changed. … … 45 45 new Tag("waterway", "canal") 46 46 })); 47 47 48 48 /** 49 49 * Replies the tags that imply a semantic meaning from <code>way</code> direction and cannot be changed. … … 54 54 return directionalTags.intersect(TagCollection.from(way)); 55 55 } 56 56 57 57 /** 58 58 * Tests whether way can be reversed without semantic change. … … 64 64 return getDirectionalTags(way).isEmpty(); 65 65 } 66 66 67 67 protected static String getHTML(TagCollection tags) { 68 68 if (tags.size() == 1) { … … 74 74 } 75 75 } 76 76 77 77 protected static boolean confirmReverseWay(Way way, TagCollection tags) { 78 78 String msg = trn( … … 100 100 ); 101 101 switch(ret) { 102 case ConditionalOptionPaneUtil.DIALOG_DISABLED_OPTION : return true; 103 case JOptionPane.YES_OPTION: return true; 104 default: return false; 102 case ConditionalOptionPaneUtil.DIALOG_DISABLED_OPTION: 103 case JOptionPane.YES_OPTION: 104 return true; 105 default: 106 return false; 105 107 } 106 108 } 107 109 108 110 /** 109 111 * Checks the given way can be safely reversed and asks user to confirm the operation if it not the case.
Note:
See TracChangeset
for help on using the changeset viewer.