Ignore:
Timestamp:
10.03.2010 10:00:20 (2 years ago)
Author:
Gubaer
Message:

fixed #4651: Ability to download incomplete relation from selection
fixed #4098: Popup Menu entry "download relation members" in relation dialog should be "download incomplete relation members"
fixed two NPEs in RelationListDialog and SelectionListDialog
refactored SelectionListDialog to support better user feedback (enabled/disabled buttons and menu items)
Finally removed the sort() method on DataSet, marked as FIXME since a long time.

CAVEAT: DataSet.getSelected() now returns an unmodifiable list instead of a copy of the selection list. This may lead to UnsupportedOperationExceptions in the next few days. I tried to make sure the JOSM core uses getSelected() only for reading, but I didn't check the plugins.

File:
1 edited

Legend:

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

    r2912 r3102  
    5555        if (!isEnabled()) 
    5656            return; 
    57         SearchSetting s = lastSearch; 
    58         if (s == null) { 
    59             s = new SearchSetting(); 
    60         } 
    61         SearchSetting se = showSearchDialog(s); 
    62         if(se != null) { 
    63             searchWithHistory(se); 
    64         } 
     57        search(); 
    6558    } 
    6659 
     
    7467 
    7568    public static SearchSetting showSearchDialog(SearchSetting initialValues) { 
    76  
     69        if (initialValues == null) { 
     70            initialValues = new SearchSetting(); 
     71        } 
    7772        // -- prepare the combo box with the search expressions 
    7873        // 
     
    178173 
    179174    /** 
     175     * Launches the dialog for specifying search criteria and runs 
     176     * a search 
     177     */ 
     178    public static void search() { 
     179        SearchSetting se = showSearchDialog(lastSearch); 
     180        if(se != null) { 
     181            searchWithHistory(se); 
     182        } 
     183    } 
     184 
     185    /** 
    180186     * Adds the search specified by the settings in <code>s</code> to the 
    181187     * search history and performs the search. 
Note: See TracChangeset for help on using the changeset viewer.