Changeset 12656 in josm for trunk/src/org/openstreetmap/josm/gui/dialogs
- Timestamp:
- 2017-08-26T00:40:19+02:00 (7 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/dialogs
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/RelationListDialog.java
r12643 r12656 41 41 import org.openstreetmap.josm.actions.relation.SelectMembersAction; 42 42 import org.openstreetmap.josm.actions.relation.SelectRelationAction; 43 import org.openstreetmap.josm.actions.search.SearchCompiler;44 43 import org.openstreetmap.josm.data.osm.DataSet; 45 44 import org.openstreetmap.josm.data.osm.OsmPrimitive; … … 50 49 import org.openstreetmap.josm.data.osm.event.DatasetEventManager; 51 50 import org.openstreetmap.josm.data.osm.event.DatasetEventManager.FireMode; 51 import org.openstreetmap.josm.data.osm.search.SearchCompiler; 52 52 import org.openstreetmap.josm.data.osm.event.NodeMovedEvent; 53 53 import org.openstreetmap.josm.data.osm.event.PrimitivesAddedEvent; -
trunk/src/org/openstreetmap/josm/gui/dialogs/properties/PropertiesDialog.java
r12641 r12656 61 61 import org.openstreetmap.josm.actions.relation.SelectRelationAction; 62 62 import org.openstreetmap.josm.actions.search.SearchAction.SearchSetting; 63 import org.openstreetmap.josm.actions.search.SearchCompiler;64 63 import org.openstreetmap.josm.command.ChangeCommand; 65 64 import org.openstreetmap.josm.command.ChangePropertyCommand; … … 78 77 import org.openstreetmap.josm.data.osm.event.DatasetEventManager; 79 78 import org.openstreetmap.josm.data.osm.event.DatasetEventManager.FireMode; 79 import org.openstreetmap.josm.data.osm.search.SearchCompiler; 80 80 import org.openstreetmap.josm.data.osm.event.SelectionEventManager; 81 81 import org.openstreetmap.josm.data.preferences.StringProperty; -
trunk/src/org/openstreetmap/josm/gui/dialogs/properties/RecentTagCollection.java
r12615 r12656 9 9 10 10 import org.openstreetmap.josm.actions.search.SearchAction; 11 import org.openstreetmap.josm.actions.search.SearchCompiler;12 11 import org.openstreetmap.josm.data.osm.Tag; 12 import org.openstreetmap.josm.data.osm.search.SearchParseError; 13 import org.openstreetmap.josm.data.osm.search.SearchCompiler; 13 14 import org.openstreetmap.josm.data.preferences.CollectionProperty; 14 15 … … 81 82 } 82 83 83 public void setTagsToIgnore(SearchAction.SearchSetting tagsToIgnore) throws Search Compiler.ParseError {84 public void setTagsToIgnore(SearchAction.SearchSetting tagsToIgnore) throws SearchParseError { 84 85 setTagsToIgnore(tagsToIgnore.text.isEmpty() ? SearchCompiler.Never.INSTANCE : SearchCompiler.compile(tagsToIgnore)); 85 86 } 86 87 87 public SearchAction.SearchSetting ignoreTag(Tag tagToIgnore, SearchAction.SearchSetting settingToUpdate) throws Search Compiler.ParseError {88 public SearchAction.SearchSetting ignoreTag(Tag tagToIgnore, SearchAction.SearchSetting settingToUpdate) throws SearchParseError { 88 89 final String forTag = SearchCompiler.buildSearchStringForTag(tagToIgnore.getKey(), tagToIgnore.getValue()); 89 90 settingToUpdate.text = settingToUpdate.text.isEmpty() -
trunk/src/org/openstreetmap/josm/gui/dialogs/properties/SearchBasedRowFilter.java
r9536 r12656 5 5 import javax.swing.table.TableModel; 6 6 7 import org.openstreetmap.josm.actions.search.SearchCompiler;8 7 import org.openstreetmap.josm.data.osm.Tag; 8 import org.openstreetmap.josm.data.osm.search.SearchCompiler; 9 9 10 10 /** 11 11 * A {@link RowFilter} implementation which matches tags w.r.t. the specified filter's 12 * {@link org.openstreetmap.josm. actions.search.SearchCompiler.Match#match(org.openstreetmap.josm.data.osm.Tagged)} method.12 * {@link org.openstreetmap.josm.data.osm.search.SearchCompiler.Match#match(org.openstreetmap.josm.data.osm.Tagged)} method. 13 13 * 14 14 * <p>An {@link javax.swing.RowFilter.Entry}'s column 0 is considered as key, and column 1 is considered as value.</p> -
trunk/src/org/openstreetmap/josm/gui/dialogs/properties/TagEditHelper.java
r12641 r12656 64 64 import org.openstreetmap.josm.actions.JosmAction; 65 65 import org.openstreetmap.josm.actions.search.SearchAction; 66 import org.openstreetmap.josm.actions.search.SearchCompiler;67 66 import org.openstreetmap.josm.command.ChangePropertyCommand; 68 67 import org.openstreetmap.josm.command.Command; … … 70 69 import org.openstreetmap.josm.data.osm.OsmPrimitive; 71 70 import org.openstreetmap.josm.data.osm.Tag; 71 import org.openstreetmap.josm.data.osm.search.SearchParseError; 72 import org.openstreetmap.josm.data.osm.search.SearchCompiler; 72 73 import org.openstreetmap.josm.data.preferences.BooleanProperty; 73 74 import org.openstreetmap.josm.data.preferences.CollectionProperty; … … 335 336 tagsToIgnore = searchSetting; 336 337 recentTags.setTagsToIgnore(tagsToIgnore); 337 } catch (Search Compiler.ParseError parseError) {338 } catch (SearchParseError parseError) { 338 339 warnAboutParseError(parseError); 339 340 tagsToIgnore = new SearchAction.SearchSetting(); … … 343 344 } 344 345 345 private static void warnAboutParseError(Search Compiler.ParseError parseError) {346 private static void warnAboutParseError(SearchParseError parseError) { 346 347 Logging.warn(parseError); 347 348 JOptionPane.showMessageDialog( … … 1009 1010 PROPERTY_TAGS_TO_IGNORE.put(tagsToIgnore.writeToString()); 1010 1011 } 1011 } catch (Search Compiler.ParseError parseError) {1012 } catch (SearchParseError parseError) { 1012 1013 throw new IllegalStateException(parseError); 1013 1014 } … … 1031 1032 recentTags.setTagsToIgnore(tagsToIgnore); 1032 1033 PROPERTY_TAGS_TO_IGNORE.put(tagsToIgnore.writeToString()); 1033 } catch (Search Compiler.ParseError parseError) {1034 } catch (SearchParseError parseError) { 1034 1035 warnAboutParseError(parseError); 1035 1036 }
Note:
See TracChangeset
for help on using the changeset viewer.