Changeset 14546 in josm for trunk/src/org
- Timestamp:
- 2018-12-10T13:13:38+01:00 (6 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/dialogs/changeset
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/ChangesetCacheManager.java
r14410 r14546 65 65 import org.openstreetmap.josm.io.NetworkManager; 66 66 import org.openstreetmap.josm.io.OnlineResource; 67 import org.openstreetmap.josm.tools.Destroyable; 67 68 import org.openstreetmap.josm.tools.ImageProvider; 68 69 import org.openstreetmap.josm.tools.InputMapUtils; … … 104 105 instance.setVisible(true); 105 106 instance.dispose(); 107 for (Component c : instance.pnlChangesetDetailTabs.getComponents()) { 108 if (c instanceof Destroyable) { 109 ((Destroyable) c).destroy(); 110 } 111 } 106 112 instance = null; 107 113 } -
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/ChangesetDetailPanel.java
r14432 r14546 46 46 import org.openstreetmap.josm.io.NetworkManager; 47 47 import org.openstreetmap.josm.io.OnlineResource; 48 import org.openstreetmap.josm.tools.Destroyable; 48 49 import org.openstreetmap.josm.tools.ImageProvider; 49 50 import org.openstreetmap.josm.tools.Utils; … … 55 56 * @since 2689 56 57 */ 57 public class ChangesetDetailPanel extends JPanel implements PropertyChangeListener, ChangesetAware {58 public class ChangesetDetailPanel extends JPanel implements PropertyChangeListener, ChangesetAware, Destroyable { 58 59 59 60 // CHECKSTYLE.OFF: SingleSpaceSeparator … … 477 478 return currentChangeset; 478 479 } 480 481 @Override 482 public void destroy() { 483 MainApplication.getLayerManager().removeActiveLayerChangeListener(actSelectInCurrentLayer); 484 MainApplication.getLayerManager().removeActiveLayerChangeListener(actZoomInCurrentLayerAction); 485 } 479 486 }
Note:
See TracChangeset
for help on using the changeset viewer.