Changeset 14995 in josm


Ignore:
Timestamp:
2019-04-16T07:13:03+02:00 (8 months ago)
Author:
GerdP
Message:

Fix PMD warning "Avoid excessively long variable names like PROP_ZOOM_SCALE_FOLLOWS_NATIVE_RESOLUTION_AT_LOAD."

Location:
trunk/src/org/openstreetmap/josm/gui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/NavigatableComponent.java

    r14993 r14995  
    109109    public static final BooleanProperty PROP_ZOOM_INTERMEDIATE_STEPS = new BooleanProperty("zoom.intermediate-steps", true);
    110110    /** scale follows native resolution of layer status when layer is created */
    111     public static final BooleanProperty PROP_ZOOM_SCALE_FOLLOWS_NATIVE_RESOLUTION_AT_LOAD = new BooleanProperty(
     111    public static final BooleanProperty PROP_ZOOM_SCALE_FOLLOW_NATIVE_RES_AT_LOAD = new BooleanProperty(
    112112            "zoom.scale-follow-native-resolution-at-load", true);
    113113
  • trunk/src/org/openstreetmap/josm/gui/layer/AbstractTileSourceLayer.java

    r14993 r14995  
    556556        MapView.addZoomChangeListener(this);
    557557
    558         if (this instanceof NativeScaleLayer && NavigatableComponent.PROP_ZOOM_SCALE_FOLLOWS_NATIVE_RESOLUTION_AT_LOAD.get()) {
     558        if (this instanceof NativeScaleLayer && NavigatableComponent.PROP_ZOOM_SCALE_FOLLOW_NATIVE_RES_AT_LOAD.get()) {
    559559            event.getMapView().setNativeScaleLayer((NativeScaleLayer) this);
    560560        }
Note: See TracChangeset for help on using the changeset viewer.