Changeset 2129 in josm for trunk/src/org/openstreetmap/josm/actions
- Timestamp:
- 2009-09-14T11:37:34+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/search/SearchAction.java
r2123 r2129 83 83 84 84 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 94 85 left.add(label, GBC.eop()); 95 86 left.add(input, GBC.eop().fill(GBC.HORIZONTAL)); … … 136 127 initialValues instanceof Filter ? tr("Filter") : tr("Search"), 137 128 new String[] { 138 initialValues instanceof Filter ? tr(" Makefilter") : tr("Start Search"),129 initialValues instanceof Filter ? tr("Submit filter") : tr("Start Search"), 139 130 tr("Cancel")} 140 131 ); … … 151 142 : (remove.isSelected() ? SearchAction.SearchMode.remove : SearchAction.SearchMode.in_selection)); 152 143 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()); 154 145 } else { 155 146 return new SearchSetting(input.getText(), mode, caseSensitive.isSelected(), regexSearch.isSelected());
Note:
See TracChangeset
for help on using the changeset viewer.