Changeset 9455 in josm for trunk/src/org/openstreetmap/josm/io/session/OsmDataSessionExporter.java
- Timestamp:
- 2016-01-15T01:31:57+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/session/OsmDataSessionExporter.java
r9215 r9455 22 22 import java.net.URL; 23 23 import java.nio.charset.StandardCharsets; 24 import java.util.Collection;25 import java.util.Collections;26 24 27 25 import javax.swing.AbstractAction; 28 26 import javax.swing.ButtonGroup; 29 27 import javax.swing.JButton; 30 import javax.swing.JCheckBox;31 28 import javax.swing.JLabel; 32 29 import javax.swing.JPanel; … … 35 32 36 33 import org.openstreetmap.josm.actions.SaveAction; 37 import org.openstreetmap.josm.gui.layer.Layer;38 34 import org.openstreetmap.josm.gui.layer.OsmDataLayer; 39 35 import org.openstreetmap.josm.gui.util.GuiHelper; … … 46 42 import org.w3c.dom.Element; 47 43 48 public class OsmDataSessionExporter implements SessionLayerExporter { 49 50 private final OsmDataLayer layer; 44 /** 45 * Session exporter for {@link OsmDataLayer}. 46 * @since 4685 47 */ 48 public class OsmDataSessionExporter extends AbstractSessionExporter<OsmDataLayer> { 49 51 50 private JRadioButton link; 52 51 private JRadioButton include; 53 private JCheckBox export;54 52 55 53 /** … … 58 56 */ 59 57 public OsmDataSessionExporter(OsmDataLayer layer) { 60 this.layer = layer; 61 } 62 63 @Override 64 public Collection<Layer> getDependencies() { 65 return Collections.emptySet(); 58 super(layer); 66 59 } 67 60 … … 93 86 final JPanel p = new JPanel(new GridBagLayout()); 94 87 JPanel topRow = new JPanel(new GridBagLayout()); 95 export = new JCheckBox();96 88 export.setSelected(true); 97 89 final JLabel lbl = new JLabel(layer.getName(), layer.getIcon(), SwingConstants.LEFT); … … 182 174 183 175 @Override 184 public boolean shallExport() {185 return export.isSelected();186 }187 188 @Override189 176 public boolean requiresZip() { 190 177 return include.isSelected();
Note:
See TracChangeset
for help on using the changeset viewer.