- Timestamp:
- 2006-10-01T22:45:50+02:00 (18 years ago)
- Location:
- src/org/openstreetmap/josm
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
src/org/openstreetmap/josm/Main.java
r144 r145 99 99 */ 100 100 public final void setMapFrame(final MapFrame map) { 101 MapFrame old = Main.map; 101 102 Main.map = map; 102 103 panel.setVisible(false); … … 126 127 127 128 for (Plugin plugin : plugins) 128 plugin.mapFrameInitialized( map);129 plugin.mapFrameInitialized(old, map); 129 130 } 130 131 -
src/org/openstreetmap/josm/gui/SelectionManager.java
r100 r145 311 311 if (w.deleted) 312 312 continue; 313 boolean wholeWaySelected = !w.segments.isEmpty(); 313 boolean someSelectableSegment = false; 314 boolean wholeWaySelected = true; 314 315 for (Segment s : w.segments) { 315 316 if (s.incomplete) 316 317 continue; 318 someSelectableSegment = true; 317 319 if (!rectangleContainSegment(r, alt, s)) { 318 320 wholeWaySelected = false; … … 320 322 } 321 323 } 322 if ( wholeWaySelected)324 if (someSelectableSegment && wholeWaySelected) 323 325 selection.add(w); 324 326 } -
src/org/openstreetmap/josm/gui/layer/GeoImageLayer.java
r138 r145 32 32 import javax.swing.Icon; 33 33 import javax.swing.ImageIcon; 34 import javax.swing.JDialog; 34 35 import javax.swing.JFileChooser; 35 36 import javax.swing.JLabel; … … 235 236 final JPanel p = new JPanel(new BorderLayout()); 236 237 final JScrollPane scroll = new JScrollPane(new JLabel(loadScaledImage(e.image, 580))); 237 //scroll.setPreferredSize(new Dimension(800,600));238 238 final JViewport vp = scroll.getViewport(); 239 239 p.add(scroll, BorderLayout.CENTER); … … 254 254 }); 255 255 scale.setSelected(true); 256 JOptionPane.showMessageDialog(Main.parent, p, e.image+" ("+e.coor.lat()+","+e.coor.lon()+")", JOptionPane.PLAIN_MESSAGE); 256 JOptionPane pane = new JOptionPane(p, JOptionPane.PLAIN_MESSAGE); 257 JDialog dlg = pane.createDialog(Main.parent, e.image+" ("+e.coor.lat()+","+e.coor.lon()+")"); 258 dlg.setModal(false); 259 dlg.setVisible(true); 257 260 } 258 261 -
src/org/openstreetmap/josm/io/GpxWriter.java
r143 r145 92 92 GpxWriter writer = new GpxWriter(out); 93 93 // calculate bounds 94 Bounds b = new Bounds(new LatLon(Double.MAX_VALUE, Double.MAX_VALUE), new LatLon( Double.MIN_VALUE, Double.MIN_VALUE));94 Bounds b = new Bounds(new LatLon(Double.MAX_VALUE, Double.MAX_VALUE), new LatLon(-Double.MAX_VALUE, -Double.MAX_VALUE)); 95 95 for (Node n : data.nodes) 96 96 if (!n.deleted) -
src/org/openstreetmap/josm/plugins/Plugin.java
r144 r145 29 29 * Called after Main.mapFrame is initalized. (After the first data is loaded). 30 30 */ 31 public void mapFrameInitialized(MapFrame mapFrame) {}31 public void mapFrameInitialized(MapFrame oldFrame, MapFrame newFrame) {} 32 32 } -
src/org/openstreetmap/josm/plugins/mappaint/MapPaintPlugin.java
r144 r145 41 41 } 42 42 43 @Override public void mapFrameInitialized(MapFrame mapFrame) { 44 mapFrame.mapView.addLayerChangeListener(this); 43 @Override public void mapFrameInitialized(MapFrame oldFrame, MapFrame newFrame) { 44 if (newFrame != null) 45 newFrame.mapView.addLayerChangeListener(this); 46 else 47 oldFrame.mapView.removeLayerChangeListener(this); 45 48 } 46 49
Note:
See TracChangeset
for help on using the changeset viewer.