Changeset 27292 in osm for applications


Ignore:
Timestamp:
2011-12-21T15:43:17+01:00 (13 years ago)
Author:
larry0ua
Message:

'added layerIsSupported to main mapmode'

Location:
applications/editors/josm/plugins/alignways
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/alignways/build.xml

    r26692 r27292  
    3030<project name="alignways" default="dist" basedir=".">
    3131    <!-- enter the SVN commit message -->
    32     <property name="commit.message" value="fix shortcut conflict with UtilsPlugin2"/>
     32    <property name="commit.message" value="added layerIsSupported to main mapmode"/>
    3333    <!--
    3434        enter the *lowest* JOSM version this plugin is currently compatible
  • applications/editors/josm/plugins/alignways/src/org/openstreetmap/josm/plugins/alignways/AlignWaysMode.java

    r23192 r27292  
    1919import org.openstreetmap.josm.actions.mapmode.MapMode;
    2020import org.openstreetmap.josm.gui.MapFrame;
     21import org.openstreetmap.josm.gui.layer.Layer;
     22import org.openstreetmap.josm.gui.layer.OsmDataLayer;
    2123import org.openstreetmap.josm.tools.Shortcut;
    2224
     
    2830public class AlignWaysMode extends MapMode /* implements MapViewPaintable */{
    2931
    30     private static final long serialVersionUID = -1090955708412011141L;
     32        private static final long serialVersionUID = -1090955708412011141L;
    3133    private final AlignWaysState noneSelected;
    3234    private final AlignWaysState referenceSelected;
     
    183185
    184186    }
     187
     188    @Override
     189        public boolean layerIsSupported(Layer l) {
     190                return l instanceof OsmDataLayer;
     191        }
    185192}
Note: See TracChangeset for help on using the changeset viewer.