Ignore:
Timestamp:
17.01.2010 11:56:07 (2 years ago)
Author:
jttt
Message:

Removed ToggleDialog.tearDown(). All listeners should be unregistered in hideNotify()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/ToggleDialog.java

    r2770 r2869  
    77import java.awt.Component; 
    88import java.awt.Dimension; 
     9import java.awt.FlowLayout; 
    910import java.awt.Graphics; 
    10 import java.awt.FlowLayout; 
     11import java.awt.GridBagLayout; 
    1112import java.awt.GridLayout; 
    12 import java.awt.GridBagLayout; 
    1313import java.awt.Image; 
    1414import java.awt.Rectangle; 
     
    560560    } 
    561561 
    562     /** 
    563      * This method is called by hosting panel before the panel with the toggle dialogs 
    564      * and the toggle dialogs themself are discared, for instance because no layer is 
    565      * left in JOSM and  the main screen turns from the map editor to the MOTD panel. 
    566      * 
    567      * Override in subclasses to unregister as listener. After tearDown() is invoked 
    568      * the dialog should be registered as listener. 
    569      * 
    570      * The default implementation is empty. 
    571      */ 
    572     public void tearDown() {} 
    573  
    574562    protected JPanel getButtonPanel(int columns) { 
    575563        JPanel pnl = new JPanel(); 
    576564        pnl.setLayout(Main.pref.getBoolean("dialog.align.left", false) 
    577         ? new FlowLayout(FlowLayout.LEFT) : new GridLayout(1,columns)); 
     565                ? new FlowLayout(FlowLayout.LEFT) : new GridLayout(1,columns)); 
    578566        return pnl; 
    579567    } 
Note: See TracChangeset for help on using the changeset viewer.