Changeset 8926 in josm for trunk/src/org/openstreetmap/josm/io/session/SessionLayerExporter.java
- Timestamp:
- 2015-10-22T02:01:00+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/session/SessionLayerExporter.java
r5391 r8926 6 6 import java.util.Collection; 7 7 8 import org.w3c.dom.Element;9 10 8 import org.openstreetmap.josm.gui.layer.Layer; 11 9 import org.openstreetmap.josm.io.session.SessionWriter.ExportSupport; 10 import org.w3c.dom.Element; 12 11 13 12 public interface SessionLayerExporter { … … 15 14 /** 16 15 * Return the Layers, this Layer depends on. 16 * @return the layer dependencies 17 17 */ 18 18 Collection<Layer> getDependencies(); … … 20 20 /** 21 21 * The GUI for exporting this layer. 22 * @return the export panel 22 23 */ 23 24 Component getExportPanel(); 24 25 25 26 /** 26 * Return true, if the layer should be included in the 27 * list of exported layers. 27 * Return true, if the layer should be included in the list of exported layers. 28 28 * 29 29 * The user can veto this in the export panel. 30 * @return {@code true} if the layer should be included in the list of exported layers, {@code false} otherwise. 30 31 */ 31 32 boolean shallExport(); 32 33 33 34 /** 34 * Return true, if some data needs to be included in 35 * the zip archive. This decision depends on the user 35 * Return true, if some data needs to be included in the zip archive. This decision depends on the user 36 36 * selection in the export panel. 37 37 * 38 * If any layer requires zip, the user can only save as 39 * .joz. Otherwise both .jos and .joz are possible.38 * If any layer requires zip, the user can only save as .joz. Otherwise both .jos and .joz are possible. 39 * @return {@code true} if some data needs to be included in the zip archive, {@code false} otherwise. 40 40 */ 41 41 boolean requiresZip(); … … 44 44 * Save meta data to the .jos file. Return a layer XML element. 45 45 * Use <code>support</code> to save files in the zip archive as needed. 46 * @param support support class providing export utilities 47 * @return the resulting XML element 48 * @throws IOException if any I/O error occurs 46 49 */ 47 50 Element export(ExportSupport support) throws IOException; 48 49 51 } 50
Note:
See TracChangeset
for help on using the changeset viewer.