Ignore:
Timestamp:
2017-09-09T10:35:27+02:00 (7 years ago)
Author:
bastiK
Message:

see #15273, see #15229 - fix unit tests, PMD, etc.

File:
1 edited

Legend:

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

    r12792 r12795  
    978978        Main.toolbar = toolbar;
    979979        ProjectionPreference.setProjection();
    980         NTV2GridShiftFileWrapper.registerNTV2GridShiftFileSource(
    981                 NTV2GridShiftFileWrapper.NTV2_SOURCE_PRIORITY_LOCAL,
    982                 NTV2Proj4DirGridShiftFileSource.getInstance());
    983         NTV2GridShiftFileWrapper.registerNTV2GridShiftFileSource(
    984                 NTV2GridShiftFileWrapper.NTV2_SOURCE_PRIORITY_DOWNLOAD,
    985                 JOSM_WEBSITE_NTV2_SOURCE);
     980        setupNadGridSources();
    986981        GuiHelper.translateJavaInternalMessages();
    987982        preConstructorInit();
     
    10371032            RepaintManager.setCurrentManager(new CheckThreadViolationRepaintManager());
    10381033        }
     1034    }
     1035
     1036    /**
     1037     * Setup the sources for NTV2 grid shift files for projection support.
     1038     * @since 12795
     1039     */
     1040    public static void setupNadGridSources() {
     1041        NTV2GridShiftFileWrapper.registerNTV2GridShiftFileSource(
     1042                NTV2GridShiftFileWrapper.NTV2_SOURCE_PRIORITY_LOCAL,
     1043                NTV2Proj4DirGridShiftFileSource.getInstance());
     1044        NTV2GridShiftFileWrapper.registerNTV2GridShiftFileSource(
     1045                NTV2GridShiftFileWrapper.NTV2_SOURCE_PRIORITY_DOWNLOAD,
     1046                JOSM_WEBSITE_NTV2_SOURCE);
    10391047    }
    10401048
Note: See TracChangeset for help on using the changeset viewer.