Changeset 3409 in josm for trunk


Ignore:
Timestamp:
2010-08-03T08:47:51+02:00 (14 years ago)
Author:
jttt
Message:

Use class BooleanProperty so it don't get removed from josm jar and wms plugin can use it

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/CombineWayAction.java

    r3230 r3409  
    3535import org.openstreetmap.josm.data.osm.TagCollection;
    3636import org.openstreetmap.josm.data.osm.Way;
     37import org.openstreetmap.josm.data.preferences.BooleanProperty;
    3738import org.openstreetmap.josm.gui.ExtendedDialog;
    3839import org.openstreetmap.josm.gui.conflict.tags.CombinePrimitiveResolverDialog;
     
    4546 */
    4647public class CombineWayAction extends JosmAction {
     48
     49    private static final BooleanProperty PROP_REVERSE_WAY = new BooleanProperty("tag-correction.reverse-way", true);
    4750
    4851    public CombineWayAction() {
     
    154157            }
    155158            // if there are still reversed ways with direction-dependent tags, reverse their tags
    156             if (!reversedWays.isEmpty() && Main.pref.getBoolean("tag-correction.reverse-way", true)) {
     159            if (!reversedWays.isEmpty() && PROP_REVERSE_WAY.get()) {
    157160                List<Way> unreversedTagWays = new ArrayList<Way>(ways);
    158161                unreversedTagWays.removeAll(reversedWays);
Note: See TracChangeset for help on using the changeset viewer.