Changeset 14932 in josm for trunk/src/org
- Timestamp:
- 2019-03-26T00:07:36+01:00 (6 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/search/SearchAction.java
r14927 r14932 173 173 * @param initialValues A set of initial values needed in order to initialize the search dialog. 174 174 * If is {@code null}, then default settings are used. 175 * @return Returns {@link SearchAction} object containing parameters of the search.175 * @return Returns new {@link SearchSetting} object containing parameters of the search. 176 176 */ 177 177 public static SearchSetting showSearchDialog(SearchSetting initialValues) { -
trunk/src/org/openstreetmap/josm/data/osm/Filter.java
r13205 r14932 44 44 super(); 45 45 mode = SearchMode.add; 46 } 47 48 /** 49 * Constructs a new {@code Filter} from a {@code SearchSetting} 50 * @param setting {@code SearchSetting} to construct information from 51 * @since 14932 52 */ 53 public Filter(SearchSetting setting) { 54 super(setting); 46 55 } 47 56 -
trunk/src/org/openstreetmap/josm/gui/dialogs/FilterDialog.java
r14895 r14932 41 41 import org.openstreetmap.josm.data.osm.event.TagsChangedEvent; 42 42 import org.openstreetmap.josm.data.osm.event.WayNodesChangedEvent; 43 import org.openstreetmap.josm.data.osm.search.SearchSetting; 43 44 import org.openstreetmap.josm.gui.MainApplication; 44 45 import org.openstreetmap.josm.gui.MapFrame; … … 142 143 @Override 143 144 public void actionPerformed(ActionEvent e) { 144 Filter filter = (Filter)SearchAction.showSearchDialog(new Filter());145 if ( filter!= null) {146 filterModel.addFilter( filter);145 SearchSetting searchSetting = SearchAction.showSearchDialog(new Filter()); 146 if (searchSetting != null) { 147 filterModel.addFilter(new Filter(searchSetting)); 147 148 } 148 149 } … … 160 161 if (index < 0) return; 161 162 Filter f = filterModel.getFilter(index); 162 Filter filter = (Filter)SearchAction.showSearchDialog(f);163 if ( filter!= null) {164 filterModel.setFilter(index, filter);163 SearchSetting searchSetting = SearchAction.showSearchDialog(f); 164 if (searchSetting != null) { 165 filterModel.setFilter(index, new Filter(searchSetting)); 165 166 } 166 167 }
Note:
See TracChangeset
for help on using the changeset viewer.