Changeset 14545 in josm for trunk/src/org
- Timestamp:
- 2018-12-10T10:23:30+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/history/VersionTable.java
r14119 r14545 35 35 import org.openstreetmap.josm.io.XmlWriter; 36 36 import org.openstreetmap.josm.spi.preferences.Config; 37 import org.openstreetmap.josm.tools.Destroyable; 37 38 import org.openstreetmap.josm.tools.ImageProvider; 38 39 import org.openstreetmap.josm.tools.OpenBrowser; … … 43 44 * @since 1709 44 45 */ 45 public class VersionTable extends JTable implements ChangeListener {46 public class VersionTable extends JTable implements ChangeListener, Destroyable { 46 47 private VersionTablePopupMenu popupMenu; 47 48 private final transient HistoryBrowserModel model; … … 104 105 } 105 106 107 @Override 108 public void destroy() { 109 popupMenu.destroy(); 110 } 111 106 112 // some kind of hack to prevent the table from scrolling to the 107 113 // right when clicking on the cells … … 220 226 } 221 227 222 static class VersionTablePopupMenu extends JPopupMenu {228 static class VersionTablePopupMenu extends JPopupMenu implements Destroyable { 223 229 224 230 private ChangesetInfoAction changesetInfoAction; … … 244 250 userInfoAction.prepare(primitive); 245 251 invalidate(); 252 } 253 254 @Override 255 public void destroy() { 256 if (changesetInfoAction != null) 257 changesetInfoAction.destroy(); 258 if (userInfoAction != null) 259 userInfoAction.destroy(); 246 260 } 247 261 }
Note:
See TracChangeset
for help on using the changeset viewer.