Ticket #7828: NavigatableComponent.patch

File NavigatableComponent.patch, 1.3 KB (added by Locked, 13 years ago)
  • NavigatableComponent.java

    # This patch file was generated by NetBeans IDE
    # Following Index: paths are relative to: C:\Users\Franz\Documents\NetBeansProjects\JOSM-Plugins\core\src\org\openstreetmap\josm\gui
    # This patch can be applied using context Tools: Patch action on respective folder.
    # It uses platform neutral UTF-8 encoding and \n newlines.
    # Above lines and this line are ignored by the patching process.
     
    383383            final double frames = milliseconds * fps / 1000;
    384384            final EastNorth finalNewCenter = newCenter;
    385385
    386             new Thread(
    387                     new Runnable() {
     386            new Thread(){
     387                @Override
    388388                        public void run() {
    389389                            for (int i=0; i<frames; i++)
    390390                            {
     
    393393                                try { Thread.sleep(1000 / fps); } catch (InterruptedException ex) { };
    394394                            }
    395395                        }
     396            }.start();
    396397                    }
    397                     ).start();
    398398        }
    399     }
    400399
    401400    public void zoomToFactor(double x, double y, double factor) {
    402401        double newScale = scale*factor;