Ignore:
Timestamp:
2013-10-04T03:27:01+02:00 (11 years ago)
Author:
Don-vip
Message:

Sonar/Findbugs - Avoid commented-out lines of code, javadoc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageViewerDialog.java

    r6084 r6296  
    11// 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 
    62package org.openstreetmap.josm.gui.layer.geoimage;
    73
     
    5652    public static ImageViewerDialog getInstance() {
    5753        if (dialog == null)
    58             throw new AssertionError(); // a new instance needs to be created first
     54            throw new AssertionError("a new instance needs to be created first");
    5955        return dialog;
    6056    }
     
    6864        tr("Tool: {0}", tr("Display geotagged images")), KeyEvent.VK_Y, Shortcut.DIRECT), 200);
    6965
    70         /* Don't show a detached dialog right from the start. */
     66        // Don't show a detached dialog right from the start.
    7167        if (isShowing && !isDocked) {
    7268            setIsShowing(false);
     
    219215    public void displayImage(GeoImageLayer layer, ImageEntry entry) {
    220216        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
    225218
    226219            if (centerView && Main.isDisplayingMapView() && entry != null && entry.getPos() != null) {
     
    245238                osd.append(tr("\nDirection {0}\u00b0", Math.round(entry.getExifImgDir())));
    246239            }
    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())));
    251240            DateFormat dtf = DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT);
    252241            if (entry.getExifTime() != null) {
Note: See TracChangeset for help on using the changeset viewer.