Ignore:
Timestamp:
2016-12-08T00:54:43+01:00 (4 years ago)
Author:
Don-vip
Message:

findbugs - SIC_INNER_SHOULD_BE_STATIC_ANON

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/MultikeyActionsHandler.java

    r10616 r11366  
    3333    private final Map<MultikeyShortcutAction, MyAction> myActions = new HashMap<>();
    3434
    35     private static final class ShowLayersPopupWorker implements Runnable {
     35    static final class ShowLayersPopupWorker implements Runnable {
     36        static final class StatusLinePopupMenuListener implements PopupMenuListener {
     37            @Override
     38            public void popupMenuWillBecomeVisible(PopupMenuEvent e) {
     39                // Do nothing
     40            }
     41
     42            @Override
     43            public void popupMenuWillBecomeInvisible(PopupMenuEvent e) {
     44                Main.map.statusLine.resetHelpText(STATUS_BAR_ID);
     45            }
     46
     47            @Override
     48            public void popupMenuCanceled(PopupMenuEvent e) {
     49                // Do nothing
     50            }
     51        }
     52
    3653        private final MyAction action;
    3754
    38         private ShowLayersPopupWorker(MyAction action) {
     55        ShowLayersPopupWorker(MyAction action) {
    3956            this.action = action;
    4057        }
     
    7794                }
    7895            }
    79             layers.addPopupMenuListener(new PopupMenuListener() {
    80 
    81                 @Override
    82                 public void popupMenuWillBecomeVisible(PopupMenuEvent e) {
    83                     // Do nothing
    84                 }
    85 
    86                 @Override
    87                 public void popupMenuWillBecomeInvisible(PopupMenuEvent e) {
    88                     Main.map.statusLine.resetHelpText(STATUS_BAR_ID);
    89                 }
    90 
    91                 @Override
    92                 public void popupMenuCanceled(PopupMenuEvent e) {
    93                     // Do nothing
    94                 }
    95             });
    96 
     96            layers.addPopupMenuListener(new StatusLinePopupMenuListener());
    9797            layers.show(Main.parent, Integer.MAX_VALUE, Integer.MAX_VALUE);
    9898            layers.setLocation(Main.parent.getX() + Main.parent.getWidth() - layers.getWidth(),
    99                     Main.parent.getY() + Main.parent.getHeight() - layers.getHeight());
     99                               Main.parent.getY() + Main.parent.getHeight() - layers.getHeight());
    100100        }
    101101    }
Note: See TracChangeset for help on using the changeset viewer.