- Timestamp:
- 2013-04-20T18:32:53+02:00 (12 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/PasteTagsAction.java
r5809 r5890 244 244 } 245 245 246 @Override 246 247 public void actionPerformed(ActionEvent e) { 247 248 Collection<OsmPrimitive> selection = getCurrentDataSet().getSelected(); … … 259 260 } 260 261 261 /** Paste tags from arbitrary text 262 * @return false if action was successful262 /** Paste tags from arbitrary text, not using JOSM buffer 263 * @return true if action was successful 263 264 */ 264 265 public static boolean pasteTagsFromText(Collection<OsmPrimitive> selection, String text) { … … 268 269 TextTagParser.showBadBufferMessage(helpUrl); 269 270 return false; 270 } ;271 } 271 272 if (!TextTagParser.validateTags(tags)) return false; 272 273 String v; … … 280 281 281 282 /** Paste tags from JOSM buffer 282 * @param selection objects 283 * @param commands 284 * @return 283 * @param selection objects that will have the tags 284 * @return false if JOSM buffer was empty 285 285 */ 286 286 public static boolean pasteTagsFromJOSMBuffer(Collection<OsmPrimitive> selection) { -
trunk/src/org/openstreetmap/josm/data/CustomConfigurator.java
r5874 r5890 201 201 * Default values are not saved. 202 202 * Preference keys matching specified pattern are saved 203 * @param file name - where to export203 * @param fileName - where to export 204 204 * @param append - if true, resulting file cause appending to exuisting preferences 205 205 * @param pattern - Regexp pattern forh preferences keys you need to export (".*imagery.*", for example) -
trunk/src/org/openstreetmap/josm/data/Preferences.java
r5874 r5890 1356 1356 /** 1357 1357 * Replies the collection of plugin site URLs from where plugin lists can be downloaded 1358 *1359 * @return1360 1358 */ 1361 1359 public Collection<String> getPluginSites() { -
trunk/src/org/openstreetmap/josm/data/osm/Changeset.java
r4508 r5890 162 162 } 163 163 164 @Override 164 165 public Map<String, String> getKeys() { 165 166 return tags; 166 167 } 167 168 169 @Override 168 170 public void setKeys(Map<String, String> keys) { 169 171 this.tags = keys; … … 178 180 } 179 181 182 @Override 180 183 public void put(String key, String value) { 181 184 this.tags.put(key, value); 182 185 } 183 186 187 @Override 184 188 public String get(String key) { 185 189 return this.tags.get(key); 186 190 } 187 191 192 @Override 188 193 public void remove(String key) { 189 194 this.tags.remove(key); 190 195 } 191 196 197 @Override 192 198 public void removeAll() { 193 199 this.tags.clear(); … … 256 262 } 257 263 264 @Override 258 265 public boolean hasKeys() { 259 266 return !tags.keySet().isEmpty(); 260 267 } 261 268 269 @Override 262 270 public Collection<String> keySet() { 263 271 return tags.keySet(); -
trunk/src/org/openstreetmap/josm/data/osm/ChangesetCache.java
r5452 r5890 65 65 protected void fireChangesetCacheEvent(final ChangesetCacheEvent e) { 66 66 GuiHelper.runInEDT(new Runnable() { 67 public void run() {67 @Override public void run() { 68 68 for(ChangesetCacheListener l: listeners) { 69 69 l.changesetCacheUpdated(e); … … 188 188 /* interface PreferenceChangedListener */ 189 189 /* ------------------------------------------------------------------------- */ 190 @Override 190 191 public void preferenceChanged(PreferenceChangeEvent e) { 191 192 if (e.getKey() == null || ! e.getKey().equals("osm-server.url")) -
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/ChangesetCacheManager.java
r5439 r5890 344 344 } 345 345 346 @Override 346 347 public void actionPerformed(ActionEvent arg0) { 347 348 cancelAndClose(); … … 359 360 } 360 361 362 @Override 361 363 public void actionPerformed(ActionEvent evt) { 362 364 ChangesetQueryDialog dialog = new ChangesetQueryDialog(ChangesetCacheManager.this); … … 389 391 } 390 392 393 @Override 391 394 public void actionPerformed(ActionEvent arg0) { 392 395 List<Changeset> selected = model.getSelectedChangesets(); … … 398 401 } 399 402 403 @Override 400 404 public void valueChanged(ListSelectionEvent e) { 401 405 updateEnabledState(); … … 416 420 } 417 421 422 @Override 418 423 public void actionPerformed(ActionEvent arg0) { 419 424 List<Changeset> selected = model.getSelectedChangesets(); … … 439 444 } 440 445 446 @Override 441 447 public void valueChanged(ListSelectionEvent e) { 442 448 updateEnabledState(); … … 456 462 } 457 463 464 @Override 458 465 public void actionPerformed(ActionEvent arg0) { 459 466 List<Changeset> selected = model.getSelectedChangesets(); … … 466 473 } 467 474 475 @Override 468 476 public void valueChanged(ListSelectionEvent e) { 469 477 updateEnabledState(); … … 483 491 } 484 492 493 @Override 485 494 public void actionPerformed(ActionEvent arg0) { 486 495 ChangesetContentDownloadTask task = new ChangesetContentDownloadTask(ChangesetCacheManager.this,model.getSelectedChangesetIds()); … … 492 501 } 493 502 503 @Override 494 504 public void valueChanged(ListSelectionEvent e) { 495 505 updateEnabledState(); … … 505 515 } 506 516 517 @Override 507 518 public void actionPerformed(ActionEvent arg0) { 508 519 showDetails(); … … 530 541 } 531 542 543 @Override 532 544 public void actionPerformed(ActionEvent arg0) { 533 545 JosmUserIdentityManager im = JosmUserIdentityManager.getInstance(); … … 580 592 581 593 class ChangesetDetailViewSynchronizer implements ListSelectionListener { 594 @Override 582 595 public void valueChanged(ListSelectionEvent e) { 583 596 List<Changeset> selected = model.getSelectedChangesets(); … … 628 641 Main.worker.submit(task); 629 642 Runnable r = new Runnable() { 630 public void run() {643 @Override public void run() { 631 644 if (task.isCanceled() || task.isFailed()) return; 632 645 setSelectedChangesets(task.getDownloadedChangesets()); -
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/ChangesetCacheManagerModel.java
r5266 r5890 125 125 } 126 126 127 @Override 127 128 public int getColumnCount() { 128 129 return 5; 129 130 } 130 131 132 @Override 131 133 public int getRowCount() { 132 134 return data.size(); 133 135 } 134 136 137 @Override 135 138 public Object getValueAt(int row, int column) { 136 139 return data.get(row); … … 161 164 this.data, 162 165 new Comparator<Changeset>() { 163 public int compare(Changeset o1, Changeset o2) {166 @Override public int compare(Changeset o1, Changeset o2) { 164 167 if (o1.getId() < o2.getId()) return 1; 165 168 if (o1.getId() == o2.getId()) return 0; … … 173 176 /* interface ChangesetCacheListener */ 174 177 /* ------------------------------------------------------------------------------ */ 178 @Override 175 179 public void changesetCacheUpdated(ChangesetCacheEvent event) { 176 180 List<Changeset> selected = getSelectedChangesets(); -
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/query/ChangesetQueryTask.java
r5366 r5890 117 117 // 118 118 Runnable r = new Runnable() { 119 public void run() {119 @Override public void run() { 120 120 ChangesetCache.getInstance().update(downloadedChangesets); 121 121 } … … 187 187 // thrown if user cancel the authentication dialog 188 188 canceled = true; 189 return;190 189 } catch(OsmTransferException e) { 191 190 if (canceled) … … 198 197 /* interface ChangesetDownloadTask */ 199 198 /* ------------------------------------------------------------------------------- */ 199 @Override 200 200 public Set<Changeset> getDownloadedChangesets() { 201 201 return downloadedChangesets; 202 202 } 203 203 204 @Override 204 205 public boolean isCanceled() { 205 206 return canceled; 206 207 } 207 208 209 @Override 208 210 public boolean isFailed() { 209 211 return lastException != null; -
trunk/src/org/openstreetmap/josm/gui/io/DownloadOpenChangesetsTask.java
r4310 r5890 37 37 38 38 /** 39 * 40 * @param model provides the user id of the current user and accepts the changesets 41 * after download 39 * Constructs the task 40 * @param parent is a component to show error messages 42 41 */ 43 42 public DownloadOpenChangesetsTask(Component parent) { … … 87 86 SwingUtilities.invokeLater( 88 87 new Runnable() { 89 public void run() {88 @Override public void run() { 90 89 ChangesetCache.getInstance().update(changesets); 91 90 } … … 102 101 JosmUserIdentityManager im = JosmUserIdentityManager.getInstance(); 103 102 try { 104 OsmServerUserInfoReader reader = new OsmServerUserInfoReader();105 UserInfo info = reader.fetchUserInfo(getProgressMonitor().createSubTaskMonitor(1, false));103 OsmServerUserInfoReader infoReader = new OsmServerUserInfoReader(); 104 UserInfo info = infoReader.fetchUserInfo(getProgressMonitor().createSubTaskMonitor(1, false)); 106 105 im.setFullyIdentified(info.getDisplayName(), info); 107 106 } catch(OsmTransferException e) { -
trunk/src/org/openstreetmap/josm/gui/progress/ProgressMonitor.java
r5534 r5890 115 115 * @param ticks Number of work units that should be done when subtask finishes 116 116 * @param internal If true then subtask can't modify task title/custom text 117 * @return118 117 */ 119 118 ProgressMonitor createSubTaskMonitor(int ticks, boolean internal);
Note:
See TracChangeset
for help on using the changeset viewer.