source: josm/trunk/src/org/openstreetmap/josm/io/OsmServerReadPostprocessor.java@ 7315

Last change on this file since 7315 was 4645, checked in by framm, 12 years ago

Added three new hooks for plugins, allowing plugins to mess with JOSM's server I/O. Plugins can now add postprocessors to server reading (so they may change what JOSM receives from the OSM server), and they can add postprocessors to server writing (so they can react to an upload action *after* it happened and after IDs for new objects have been assigned - this is in addition to the existing UploadHook which is a server writing preprocessor). Thirdly, plugins can now substitute their own version of OsmWriter. Taken together, these changes make it possible for a plugin to introduce extra information from a non-OSM source into the JOSM editing process, and upon upload split away that extra information and send it to another destination. - Also made minor changes to CredentialDialog to allow plugins to subclass the dialog in case they need their own authentication.

File size: 317 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.io;
3
4import org.openstreetmap.josm.data.osm.DataSet;
5import org.openstreetmap.josm.gui.progress.ProgressMonitor;
6
7public interface OsmServerReadPostprocessor {
8
9 public void postprocessDataSet(DataSet ds, ProgressMonitor progress);
10
11}
Note: See TracBrowser for help on using the repository browser.