Ticket #21499: 21499-minimal.patch
File 21499-minimal.patch, 2.3 KB (added by , 4 years ago) |
---|
-
build.xml
4 4 <!-- enter the SVN commit message --> 5 5 <property name="commit.message" value="[josm_utilsplugin2]: select boundary by double-click; multitagger table highlights"/> 6 6 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 7 <property name="plugin.main.version" value="1 7199"/>7 <property name="plugin.main.version" value="18173"/> 8 8 9 9 <property name="plugin.author" value="Kalle Lampila, Upliner, Zverik, akks, joshdoe and others"/> 10 10 <property name="plugin.class" value="org.openstreetmap.josm.plugins.utilsplugin2.UtilsPlugin2"/> -
src/org/openstreetmap/josm/plugins/utilsplugin2/multitagger/MultiTagDialog.java
145 145 List<String> cmtHistory = new LinkedList<>( 146 146 Config.getPref().getList(HISTORY_KEY, Arrays.asList(defaultHistory))); 147 147 Collections.reverse(cmtHistory); 148 cbTagSet. setPossibleItems(cmtHistory);148 cbTagSet.getModel().addAllElements(cmtHistory); 149 149 String s = cmtHistory.get(cmtHistory.size()-1); 150 150 cbTagSet.setText(s); 151 151 specifyTagSet(s); … … 282 282 public void actionPerformed(ActionEvent e) { 283 283 String txt = cbTagSet.getText(); 284 284 Logging.debug(txt); 285 List<String> history = cbTagSet.get History();285 List<String> history = cbTagSet.getModel().asStringList(); 286 286 history.remove(txt); 287 287 if (history.isEmpty()) { 288 288 history = Arrays.asList(defaultHistory); … … 320 320 if (s == null || s.isEmpty() || s.equals(oldTags)) return; 321 321 oldTags = s; 322 322 cbTagSet.addCurrentItemToHistory(); 323 Config.getPref().putList(HISTORY_KEY, cbTagSet.get History());323 Config.getPref().putList(HISTORY_KEY, cbTagSet.getModel().asStringList()); 324 324 specifyTagSet(s); 325 325 } 326 326 }