Ignore:
Timestamp:
23.08.2009 17:45:53 (3 years ago)
Author:
Gubaer
Message:

removed all occurences of setAlwaysOnTop(). See http://josm.openstreetmap.de/wiki/JosmWinMgtDemoApplication

File:
1 edited

Legend:

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

    r1937 r1987  
    181181 
    182182        setSize(findMaxDialogSize()); 
    183         try { 
    184             setAlwaysOnTop(true); 
    185         } catch (SecurityException e) { 
    186             logger.warning(tr("Caught security exception for setAlwaysOnTop(). Ignoring. Exception was: {0}", e 
    187                     .toString())); 
    188         } 
    189183 
    190184        addWindowListener( 
     
    689683            ); 
    690684            switch(ret) { 
    691                 case ConditionalOptionPaneUtil.DIALOG_DISABLED_OPTION: return; 
    692                 case JOptionPane.CLOSED_OPTION: return; 
    693                 case JOptionPane.NO_OPTION: return; 
    694                 case JOptionPane.YES_OPTION: 
    695                     memberTableModel.removeMembersReferringTo(toCheck); 
    696                     break; 
     685            case ConditionalOptionPaneUtil.DIALOG_DISABLED_OPTION: return; 
     686            case JOptionPane.CLOSED_OPTION: return; 
     687            case JOptionPane.NO_OPTION: return; 
     688            case JOptionPane.YES_OPTION: 
     689                memberTableModel.removeMembersReferringTo(toCheck); 
     690                break; 
    697691            } 
    698692        } 
     
    727721            ); 
    728722            switch(ret) { 
    729                 case ConditionalOptionPaneUtil.DIALOG_DISABLED_OPTION : return true; 
    730                 case JOptionPane.YES_OPTION: return true; 
    731                 case JOptionPane.NO_OPTION: return false; 
    732                 case JOptionPane.CLOSED_OPTION: return false; 
    733                 case JOptionPane.CANCEL_OPTION: throw new AddAbortException(); 
     723            case ConditionalOptionPaneUtil.DIALOG_DISABLED_OPTION : return true; 
     724            case JOptionPane.YES_OPTION: return true; 
     725            case JOptionPane.NO_OPTION: return false; 
     726            case JOptionPane.CLOSED_OPTION: return false; 
     727            case JOptionPane.CANCEL_OPTION: throw new AddAbortException(); 
    734728            } 
    735729            // should not happen 
     
    11621156            ); 
    11631157            switch(ret) { 
    1164                 case JOptionPane.CANCEL_OPTION: return false; 
    1165                 case JOptionPane.YES_OPTION: return true; 
    1166                 case JOptionPane.NO_OPTION: return false; 
     1158            case JOptionPane.CANCEL_OPTION: return false; 
     1159            case JOptionPane.YES_OPTION: return true; 
     1160            case JOptionPane.NO_OPTION: return false; 
    11671161            } 
    11681162            return false; 
     
    14031397            ); 
    14041398            switch(ret) { 
    1405                 case JOptionPane.YES_OPTION: return true; 
    1406                 case ConditionalOptionPaneUtil.DIALOG_DISABLED_OPTION: return true; 
    1407                 default: 
    1408                     return false; 
     1399            case JOptionPane.YES_OPTION: return true; 
     1400            case ConditionalOptionPaneUtil.DIALOG_DISABLED_OPTION: return true; 
     1401            default: 
     1402                return false; 
    14091403            } 
    14101404        } 
Note: See TracChangeset for help on using the changeset viewer.