Changeset 27101 in osm for applications


Ignore:
Timestamp:
2011-11-20T13:43:31+01:00 (13 years ago)
Author:
oliverw
Message:
  • Renamed DONT_ZOOM_AFTER_IMPORT to ZOOM_AFTER_IMPORT to avoid duplicate 'not'
  • Enabled ZOOM_AFTER_IMPORT by default
Location:
applications/editors/josm/plugins/ColumbusCSV/src/org/openstreetmap/josm/plugins/columbusCSV
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/ColumbusCSV/src/org/openstreetmap/josm/plugins/columbusCSV/ColumbusCSVImporter.java

    r27098 r27101  
    4646        }
    4747
     48        /* (non-Javadoc)
     49         * @see org.openstreetmap.josm.io.FileImporter#importData(java.io.File, org.openstreetmap.josm.gui.progress.ProgressMonitor)
     50         */
    4851        @Override
    4952        public void importData(File file, ProgressMonitor progressMonitor)
     
    8083
    8184                                // ... and scale view appropriately - if wished by user
    82                                 if (!ColumbusCSVPreferences.dontZoom()) {
     85                                if (ColumbusCSVPreferences.zoomAfterImport()) {
    8386                                        AutoScaleAction action = new AutoScaleAction("data");
    8487                                        action.autoScale();
  • applications/editors/josm/plugins/ColumbusCSV/src/org/openstreetmap/josm/plugins/columbusCSV/ColumbusCSVPreferences.java

    r23795 r27101  
    4141         * Disable auto zoom after import.
    4242         */
    43         public static final String DONT_ZOOM_AFTER_IMPORT = PREFIX + "import.dontZoomAfterImport";
     43        public static final String ZOOM_AFTER_IMPORT = PREFIX + "import.dontZoomAfterImport";
    4444        /**
    4545         * If <tt>true</tt>, all DOP values (hdop, vdop, pdop) are ignored. If the V-900 runs in simple mode,
     
    7878        public boolean ok() {
    7979                Main.pref.put(SHOW_SUMMARY, colCSVShowSummary.isSelected());
    80                 Main.pref.put(DONT_ZOOM_AFTER_IMPORT, colCSVDontZoomAfterImport.isSelected());
     80                Main.pref.put(ZOOM_AFTER_IMPORT, colCSVDontZoomAfterImport.isSelected());
    8181                Main.pref.put(IGNORE_VDOP, colCSVIgnoreVDOP.isSelected());
    8282                Main.pref.put(WARN_CONVERSION_ERRORS, colCSVWarnConversionErrors.isSelected());
     
    107107         * @return
    108108         */
    109         public static boolean dontZoom() {
    110                 return Main.pref.getBoolean(DONT_ZOOM_AFTER_IMPORT, true);
     109        public static boolean zoomAfterImport() {
     110                return Main.pref.getBoolean(ZOOM_AFTER_IMPORT, true);
    111111        }
    112112       
     
    169169        // Apply settings
    170170        colCSVShowSummary.setSelected(Main.pref.getBoolean(SHOW_SUMMARY, true));
    171         colCSVDontZoomAfterImport.setSelected(Main.pref.getBoolean(DONT_ZOOM_AFTER_IMPORT, true));
     171        colCSVDontZoomAfterImport.setSelected(Main.pref.getBoolean(ZOOM_AFTER_IMPORT, true));
    172172        colCSVIgnoreVDOP.setSelected(Main.pref.getBoolean(IGNORE_VDOP, false));
    173173        colCSVWarnConversionErrors.setSelected(Main.pref.getBoolean(WARN_CONVERSION_ERRORS, true));
  • applications/editors/josm/plugins/ColumbusCSV/src/org/openstreetmap/josm/plugins/columbusCSV/ColumbusCSVReader.java

    r26828 r27101  
    218218         * there is no other way to assign the audio files to way points.
    219219         *
    220          * @param reader
     220         * @param gpx
    221221         * @return
    222222         */
Note: See TracChangeset for help on using the changeset viewer.