Changeset 17458 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2021-01-13T15:26:08+01:00 (4 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/OrthogonalizeAction.java
r17188 r17458 680 680 @Override 681 681 protected void updateEnabledState() { 682 if (MainApplication.getLayerManager().getEditLayer() == null) 683 rememberMovements.clear(); 682 684 updateEnabledStateOnCurrentSelection(); 683 685 } -
trunk/src/org/openstreetmap/josm/actions/relation/AbstractRelationAction.java
r15476 r17458 16 16 import org.openstreetmap.josm.io.NetworkManager; 17 17 import org.openstreetmap.josm.io.OnlineResource; 18 import org.openstreetmap.josm.tools.Destroyable; 18 19 import org.openstreetmap.josm.tools.SubclassFilteredCollection; 19 20 import org.openstreetmap.josm.tools.Utils; … … 25 26 * @since 13957 (signature) 26 27 */ 27 public abstract class AbstractRelationAction extends AbstractAction implements IPrimitiveAction {28 public abstract class AbstractRelationAction extends AbstractAction implements IPrimitiveAction, Destroyable { 28 29 /** relation collection */ 29 30 protected transient Collection<IRelation<?>> relations = Collections.<IRelation<?>>emptySet(); … … 72 73 putValue("help", helpId); 73 74 } 75 76 @Override 77 public void destroy() { 78 relations = null; 79 } 74 80 } -
trunk/src/org/openstreetmap/josm/gui/dialogs/LayerListDialog.java
r17440 r17458 407 407 ExpertToggleAction.removeExpertModeChangeListener(visibilityWidthListener); 408 408 layerManager.removeLayerChangeListener(visibilityWidthListener); 409 activateLayerAction.destroy(); 409 410 cycleLayerUpAction.destroy(); 410 411 cycleLayerDownAction.destroy(); -
trunk/src/org/openstreetmap/josm/gui/dialogs/layer/ActivateLayerAction.java
r16913 r17458 20 20 import org.openstreetmap.josm.gui.util.MultikeyShortcutAction; 21 21 import org.openstreetmap.josm.tools.CheckParameterUtil; 22 import org.openstreetmap.josm.tools.Destroyable; 22 23 import org.openstreetmap.josm.tools.ImageProvider; 23 24 import org.openstreetmap.josm.tools.Shortcut; … … 27 28 */ 28 29 public final class ActivateLayerAction extends AbstractAction 29 implements IEnabledStateUpdating, ActiveLayerChangeListener, MultikeyShortcutAction {30 implements IEnabledStateUpdating, ActiveLayerChangeListener, MultikeyShortcutAction, Destroyable { 30 31 private transient Layer layer; 31 32 private final transient Shortcut multikeyShortcut; … … 129 130 } 130 131 132 @Override 133 public void destroy() { 134 layer = null; 135 } 136 131 137 }
Note:
See TracChangeset
for help on using the changeset viewer.