Changeset 13264 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2017-12-30T18:38:36+01:00 (7 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/layer/geoimage
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/GeoImageLayer.java
r13206 r13264 1031 1031 MapFrame map = MainApplication.getMap(); 1032 1032 if (map.getToggleDialog(ImageViewerDialog.class) == null) { 1033 ImageViewerDialog.newInstance();1034 1033 map.addToggleDialog(ImageViewerDialog.getInstance()); 1035 1034 } -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageViewerDialog.java
r13220 r13264 60 60 private boolean collapseButtonClicked; 61 61 62 static void newInstance() {63 dialog = new ImageViewerDialog();64 }65 66 62 /** 67 63 * Replies the unique instance of this dialog … … 70 66 public static ImageViewerDialog getInstance() { 71 67 if (dialog == null) 72 throw new AssertionError("a new instance needs to be created first");68 dialog = new ImageViewerDialog(); 73 69 return dialog; 74 70 }
Note:
See TracChangeset
for help on using the changeset viewer.