Ignore:
Timestamp:
2014-01-02T17:51:00+01:00 (11 years ago)
Author:
donvip
Message:

[JOSM-print] remove useless code that no longer compiles with JOSM 6578

Location:
applications/editors/josm/plugins/print/src/org/openstreetmap/josm/plugins/print
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/print/src/org/openstreetmap/josm/plugins/print/PrintDialog.java

    r29848 r30173  
    236236        caption = new JLabel(" 1 :");
    237237        add(caption, std.grid(GBC.RELATIVE, row));
    238         int mapScale = (int)Main.pref.getInteger("print.map-scale", PrintPlugin.DEF_MAP_SCALE);
     238        int mapScale = Main.pref.getInteger("print.map-scale", PrintPlugin.DEF_MAP_SCALE);
    239239        mapView.setFixedMapScale(mapScale);
    240240        scaleModel = new SpinnerNumberModel(mapScale, 500, 5000000, 500);
     
    265265        add(caption, std.grid(GBC.RELATIVE, row));
    266266        resolutionModel = new SpinnerNumberModel(
    267           (int)Main.pref.getInteger("print.resolution.dpi", PrintPlugin.DEF_RESOLUTION_DPI),
     267          Main.pref.getInteger("print.resolution.dpi", PrintPlugin.DEF_RESOLUTION_DPI),
    268268          30, 1200, 10 );
    269269        final JSpinner resolutionField = new JSpinner(resolutionModel);
  • applications/editors/josm/plugins/print/src/org/openstreetmap/josm/plugins/print/PrintPlugin.java

    r29848 r30173  
    2828import javax.swing.KeyStroke;
    2929
    30 import org.openstreetmap.gui.jmapviewer.tilesources.AbstractOsmTileSource;
    3130import org.openstreetmap.josm.Main;
    3231import org.openstreetmap.josm.gui.MapFrame;
     
    8079
    8180        fileMenu.insertSeparator(pos);
    82 
    83         /* Make this plugin's preferences known */
    84         Main.pref.putDefault(
    85           "print.map-scale", Integer.toString(DEF_MAP_SCALE));
    86         Main.pref.putDefault(
    87           "print.resolution.dpi", Integer.toString(DEF_RESOLUTION_DPI));
    88         Main.pref.putDefault(
    89           "print.attribution", AbstractOsmTileSource.DEFAULT_OSM_ATTRIBUTION);
    90         Main.pref.putDefault(
    91           "print.preview.enabled", new Boolean(false).toString());
    9281
    9382        restorePrefs(); // Recover after crash if necessary
     
    175164   
    176165    /**
    177      * Undo temporary adjustments to the preferences made by
    178      * adjustPrefs().
     166     * Undo temporary adjustments to the preferences made by adjustPrefs().
    179167     */
    180168    public static void restorePrefs() {
     
    201189        Main.pref.put(savedKey, null);
    202190    }
    203    
    204191}
    205 
Note: See TracChangeset for help on using the changeset viewer.