Ignore:
Timestamp:
2012-02-22T19:54:15+01:00 (12 years ago)
Author:
akks
Message:

fix "Shortcut redefinition" warnings after MapFrame reinitialization - see #7424 (core part)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/JumpToMarkerActions.java

    r4999 r5018  
    2323    }
    2424
     25    private static JumpToNextMarker jumpToNextMarkerAction;
     26    private static JumpToPreviousMarker jumpToPreviousMarkerAction;
     27           
    2528    public static void initialize() {
    26         MultikeyActionsHandler.getInstance().addAction(new JumpToNextMarker(null));
    27         MultikeyActionsHandler.getInstance().addAction(new JumpToPreviousMarker(null));
     29        jumpToNextMarkerAction = new JumpToNextMarker(null);
     30        jumpToPreviousMarkerAction = new JumpToPreviousMarker(null);
     31        MultikeyActionsHandler.getInstance().addAction(jumpToNextMarkerAction);
     32        MultikeyActionsHandler.getInstance().addAction(jumpToPreviousMarkerAction);
     33    }
     34   
     35    public static void unregisterActions() {
     36        MultikeyActionsHandler.getInstance().removeAction(jumpToNextMarkerAction);
     37        MultikeyActionsHandler.getInstance().removeAction(jumpToPreviousMarkerAction);
    2838    }
    2939
Note: See TracChangeset for help on using the changeset viewer.