Changeset 33237 in osm for applications/editors/josm/plugins/print/src/org/openstreetmap
- Timestamp:
- 2017-04-14T22:15:28+02:00 (8 years ago)
- Location:
- applications/editors/josm/plugins/print/src/org/openstreetmap/josm/plugins/print
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/print/src/org/openstreetmap/josm/plugins/print/PrintDialog.java
r33118 r33237 232 232 mapView.setFixedMapScale(scaleModel.getNumber().intValue()); 233 233 printPreview.repaint(); 234 } catch (ParseException pe) {235 Main.error( pe);234 } catch (ParseException e) { 235 Main.error(e); 236 236 } 237 237 } … … 260 260 Main.pref.put("print.resolution.dpi", resolutionModel.getNumber().toString()); 261 261 printPreview.repaint(); 262 } catch (ParseException pe) {263 Main.error( pe);262 } catch (ParseException e) { 263 Main.error(e); 264 264 } 265 265 } -
applications/editors/josm/plugins/print/src/org/openstreetmap/josm/plugins/print/PrintableLayerManager.java
r33062 r33237 105 105 106 106 @Override 107 public synchronized void addLayerChangeListener(LayerChangeListener listener , boolean fireAdd) {108 layerManager.addLayerChangeListener(listener , fireAdd);107 public synchronized void addAndFireLayerChangeListener(LayerChangeListener listener) { 108 layerManager.addAndFireLayerChangeListener(listener); 109 109 } 110 110 … … 115 115 116 116 @Override 117 public synchronized void removeLayerChangeListener(LayerChangeListener listener, 118 boolean fireRemove) { 119 layerManager.removeLayerChangeListener(listener, fireRemove); 117 public synchronized void removeAndFireLayerChangeListener(LayerChangeListener listener) { 118 layerManager.removeAndFireLayerChangeListener(listener); 120 119 } 121 120 } -
applications/editors/josm/plugins/print/src/org/openstreetmap/josm/plugins/print/PrintableMapView.java
r33062 r33237 21 21 import java.awt.print.PrinterException; 22 22 23 import javax.swing.JPanel;24 25 23 import org.openstreetmap.gui.jmapviewer.tilesources.AbstractOsmTileSource; 26 24 import org.openstreetmap.josm.Main; … … 58 56 public PrintableMapView() { 59 57 /* Initialize MapView with a dummy parent */ 60 super(new PrintableLayerManager(), n ew JPanel(), null);58 super(new PrintableLayerManager(), null); 61 59 62 60 /* Disable MapView's ComponentLister,
Note:
See TracChangeset
for help on using the changeset viewer.