Ignore:
Timestamp:
2009-09-14T11:37:34+02:00 (15 years ago)
Author:
stoecker
Message:

see #3475 - minor cleanup

File:
1 edited

Legend:

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

    r2123 r2129  
    8383
    8484        JPanel left = new JPanel(new GridBagLayout());
    85 
    86         JTextField finput = null;
    87         if(initialValues instanceof Filter){
    88            JLabel fLabel = new JLabel(tr("Please enter a filter name."));
    89            finput = new JTextField(((Filter)initialValues).filterName);
    90            left.add(fLabel, GBC.eop());
    91            left.add(finput, GBC.eop().fill(GBC.HORIZONTAL));
    92         }
    93 
    9485        left.add(label, GBC.eop());
    9586        left.add(input, GBC.eop().fill(GBC.HORIZONTAL));
     
    136127                initialValues instanceof Filter ? tr("Filter") : tr("Search"),
    137128                new String[] {
    138                    initialValues instanceof Filter ? tr("Make filter") : tr("Start Search"),
     129                   initialValues instanceof Filter ? tr("Submit filter") : tr("Start Search"),
    139130                tr("Cancel")}
    140131        );
     
    151142                : (remove.isSelected() ? SearchAction.SearchMode.remove : SearchAction.SearchMode.in_selection));
    152143        if(initialValues instanceof Filter){
    153            return new Filter(input.getText(), mode, caseSensitive.isSelected(), regexSearch.isSelected(), finput.getText());
     144           return new Filter(input.getText(), mode, caseSensitive.isSelected(), regexSearch.isSelected());
    154145        } else {
    155146           return new SearchSetting(input.getText(), mode, caseSensitive.isSelected(), regexSearch.isSelected());
Note: See TracChangeset for help on using the changeset viewer.