Changeset 9795 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2016-02-14T12:18:35+01:00 (9 years ago)
Author:
Don-vip
Message:

findbugs

Location:
trunk/src/org/openstreetmap/josm
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/AutoScaleAction.java

    r9447 r9795  
    6161    private final String mode;
    6262
    63     protected transient ZoomChangeAdapter zoomChangeAdapter;
    64     protected transient MapFrameAdapter mapFrameAdapter;
    6563    /** Time of last zoom to bounds action */
    6664    protected long lastZoomTime = -1;
     
    358356        // make this action listen to zoom and mapframe change events
    359357        //
    360         MapView.addZoomChangeListener(zoomChangeAdapter = new ZoomChangeAdapter());
    361         Main.addMapFrameListener(mapFrameAdapter = new MapFrameAdapter());
     358        MapView.addZoomChangeListener(new ZoomChangeAdapter());
     359        Main.addMapFrameListener(new MapFrameAdapter());
    362360        initEnabledState();
    363361    }
  • trunk/src/org/openstreetmap/josm/gui/IconToggleButton.java

    r9243 r9795  
    22package org.openstreetmap.josm.gui;
    33
    4 import java.awt.event.MouseAdapter;
    5 import java.awt.event.MouseEvent;
    64import java.beans.PropertyChangeEvent;
    75import java.beans.PropertyChangeListener;
     
    2422public class IconToggleButton extends JToggleButton implements HideableButton, PropertyChangeListener, Destroyable, ExpertModeChangeListener {
    2523
    26     public boolean groupbutton;
    2724    private transient ShowHideButtonListener listener;
    2825    private boolean hideIfDisabled;
     
    5350
    5451        action.addPropertyChangeListener(this);
    55 
    56         addMouseListener(new MouseAdapter() {
    57             @Override public void mousePressed(MouseEvent e) {
    58                 groupbutton = e.getX() > getWidth()/2 && e.getY() > getHeight()/2;
    59             }
    60         });
    6152
    6253        ExpertToggleAction.addExpertModeChangeListener(this);
     
    133124    }
    134125
    135     /*
    136      * This fuction should be called for plugins that want to enable auto-hiding
     126    /**
     127     * This function should be called for plugins that want to enable auto-hiding
    137128     * custom buttons when they are disabled (because of incorrect layer, for example)
     129     * @param b hide if disabled
    138130     */
    139131    public void setAutoHideDisabledButton(boolean b) {
  • trunk/src/org/openstreetmap/josm/gui/dialogs/ToggleDialog.java

    r9660 r9795  
    701701                setLocationRelativeTo(Main.parent);
    702702            }
    703             setTitle(titleBar.getTitle());
     703            super.setTitle(titleBar.getTitle());
    704704            HelpUtil.setHelpContext(getRootPane(), helpTopic());
    705705        }
  • trunk/src/org/openstreetmap/josm/gui/dialogs/properties/TagEditHelper.java

    r9748 r9795  
    521521        protected AutoCompletingComboBox keys;
    522522        protected AutoCompletingComboBox values;
    523         protected Component componentUnderMouse;
    524523
    525524        AbstractTagsDialog(Component parent, String title, String[] buttonTexts) {
Note: See TracChangeset for help on using the changeset viewer.