- Timestamp:
- 2018-12-01T10:13:12+01:00 (6 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/SessionSaveAsAction.java
r14397 r14470 86 86 } 87 87 88 @Override 89 public void destroy() { 90 MainApplication.removeMapFrameListener(this); 91 super.destroy(); 92 } 93 88 94 /** 89 95 * Attempts to save the session. -
trunk/src/org/openstreetmap/josm/gui/MainPanel.java
r13174 r14470 9 9 10 10 import org.openstreetmap.josm.actions.mapmode.MapMode; 11 import org.openstreetmap.josm.data.UndoRedoHandler; 11 12 import org.openstreetmap.josm.gui.layer.Layer; 12 13 import org.openstreetmap.josm.gui.layer.MainLayerManager; … … 66 67 MainApplication.map = map; 67 68 add(getGettingStarted(), BorderLayout.CENTER); 69 UndoRedoHandler.getInstance().clean(); 68 70 } 69 71 setVisible(true); -
trunk/src/org/openstreetmap/josm/gui/dialogs/NotesDialog.java
r14153 r14470 221 221 public Note getSelectedNote() { 222 222 return noteData != null ? noteData.getSelectedNote() : null; 223 } 224 225 @Override 226 public void destroy() { 227 MainApplication.getLayerManager().removeLayerChangeListener(this); 228 super.destroy(); 223 229 } 224 230 … … 437 443 } 438 444 } 445 439 446 } -
trunk/src/org/openstreetmap/josm/gui/dialogs/RelationListDialog.java
r14138 r14470 46 46 import org.openstreetmap.josm.actions.relation.SelectMembersAction; 47 47 import org.openstreetmap.josm.actions.relation.SelectRelationAction; 48 import org.openstreetmap.josm.data.UndoRedoHandler; 48 49 import org.openstreetmap.josm.data.osm.DataSet; 49 50 import org.openstreetmap.josm.data.osm.DefaultNameFormatter; … … 209 210 @Override 210 211 public void destroy() { 212 UndoRedoHandler.getInstance().removeCommandQueueListener(recentRelationsAction); 211 213 recentRelationsAction.destroy(); 212 214 model.clear(); -
trunk/src/org/openstreetmap/josm/gui/dialogs/ToggleDialog.java
r14463 r14470 456 456 @Override 457 457 public void destroy() { 458 dialogsPanel = null; 458 459 rememberHeight(); 459 460 closeDetachedDialog(); -
trunk/src/org/openstreetmap/josm/gui/dialogs/properties/PropertiesDialog.java
r14424 r14470 552 552 @Override 553 553 public void destroy() { 554 taginfoAction.destroy(); 554 555 super.destroy(); 555 556 Config.getPref().removeKeyPreferenceChangeListener("display.discardable-keys", preferenceListener); -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/GenericRelationEditor.java
r14385 r14470 830 830 } 831 831 832 @Override 833 public void dispose() { 834 refreshAction.destroy(); 835 super.dispose(); 836 } 837 832 838 /** 833 839 * Exception thrown when user aborts add operation. -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/actions/RefreshAction.java
r14192 r14470 138 138 updateEnabledState(); 139 139 } 140 141 /** 142 * Allow GC to do its work 143 */ 144 public void destroy() { 145 UndoRedoHandler.getInstance().removeCommandQueueListener(this); 146 } 140 147 } -
trunk/src/org/openstreetmap/josm/gui/io/SaveLayersDialog.java
r14358 r14470 135 135 } 136 136 } 137 dialog.closeDialog(); 137 138 } 138 139 … … 348 349 public void closeDialog() { 349 350 setVisible(false); 351 saveSessionAction.destroy(); 350 352 dispose(); 351 353 } -
trunk/src/org/openstreetmap/josm/gui/layer/AbstractTileSourceLayer.java
r14435 r14470 1903 1903 public synchronized void destroy() { 1904 1904 super.destroy(); 1905 MapView.removeZoomChangeListener(this); 1905 1906 adjustAction.destroy(); 1906 1907 }
Note:
See TracChangeset
for help on using the changeset viewer.