Changeset 9215 in josm for trunk/src/org/openstreetmap/josm/io/session/OsmDataSessionExporter.java
- Timestamp:
- 2015-12-29T21:01:48+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/session/OsmDataSessionExporter.java
r9078 r9215 49 49 50 50 private final OsmDataLayer layer; 51 private JRadioButton link, include; 51 private JRadioButton link; 52 private JRadioButton include; 52 53 private JCheckBox export; 53 54 55 /** 56 * Constructs a new {@code OsmDataSessionExporter}. 57 * @param layer Data layer to export 58 */ 54 59 public OsmDataSessionExporter(OsmDataLayer layer) { 55 60 this.layer = layer; … … 62 67 63 68 private class LayerSaveAction extends AbstractAction { 69 /** 70 * Constructs a new {@code LayerSaveAction}. 71 */ 64 72 LayerSaveAction() { 65 73 putValue(SMALL_ICON, new ImageProvider("save").setWidth(16).get()); … … 105 113 final LayerSaveAction saveAction = new LayerSaveAction(); 106 114 final JButton save = new JButton(saveAction); 107 if (file != null ) {115 if (file != null && file.exists()) { 108 116 JosmTextField tf = new JosmTextField(); 109 117 tf.setText(file.getPath()); … … 126 134 cards.add(cardInclude, "include"); 127 135 128 if (file != null ) {136 if (file != null && file.exists()) { 129 137 link.setSelected(true); 130 138 } else { … … 166 174 GuiHelper.setEnabledRec(p, true); 167 175 save.setEnabled(saveAction.isEnabled()); 168 link.setEnabled(file != null );176 link.setEnabled(file != null && file.exists()); 169 177 } 170 178 }
Note:
See TracChangeset
for help on using the changeset viewer.