Changeset 6296 in josm for trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageViewerDialog.java
- Timestamp:
- 2013-10-04T03:27:01+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageViewerDialog.java
r6084 r6296 1 1 // License: GPL. See LICENSE file for details. 2 // Copyright 2007 by Christian Gallioz (aka khris78)3 // Parts of code from Geotagged plugin (by Rob Neild)4 // and the core JOSM source code (by Immanuel Scholz and others)5 6 2 package org.openstreetmap.josm.gui.layer.geoimage; 7 3 … … 56 52 public static ImageViewerDialog getInstance() { 57 53 if (dialog == null) 58 throw new AssertionError( ); // a new instance needs to be created first54 throw new AssertionError("a new instance needs to be created first"); 59 55 return dialog; 60 56 } … … 68 64 tr("Tool: {0}", tr("Display geotagged images")), KeyEvent.VK_Y, Shortcut.DIRECT), 200); 69 65 70 / * Don't show a detached dialog right from the start. */66 // Don't show a detached dialog right from the start. 71 67 if (isShowing && !isDocked) { 72 68 setIsShowing(false); … … 219 215 public void displayImage(GeoImageLayer layer, ImageEntry entry) { 220 216 synchronized(this) { 221 // if (currentLayer == layer && currentEntry == entry) { 222 // repaint(); 223 // return; 224 // } TODO: pop up image dialog but don't load image again 217 // TODO: pop up image dialog but don't load image again 225 218 226 219 if (centerView && Main.isDisplayingMapView() && entry != null && entry.getPos() != null) { … … 245 238 osd.append(tr("\nDirection {0}\u00b0", Math.round(entry.getExifImgDir()))); 246 239 } 247 //if (entry.getPos() != null) {248 // osd.append(tr("\nlat: {0}, lon: {1}", Double.toString(entry.getPos().lat()), Double.toString(entry.getPos().lon())));249 //}250 //osd.append(tr("\nfile mtime: {0}", Long.toString(entry.getFile().lastModified())));251 240 DateFormat dtf = DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT); 252 241 if (entry.getExifTime() != null) {
Note:
See TracChangeset
for help on using the changeset viewer.