Changeset 9629 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2016-01-25T13:02:39+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/SessionSaveAsAction.java
r9173 r9629 35 35 import org.openstreetmap.josm.gui.ExtendedDialog; 36 36 import org.openstreetmap.josm.gui.HelpAwareOptionPane; 37 import org.openstreetmap.josm.gui.MapFrame; 38 import org.openstreetmap.josm.gui.MapFrameListener; 37 39 import org.openstreetmap.josm.gui.layer.Layer; 38 40 import org.openstreetmap.josm.gui.widgets.AbstractFileChooser; … … 49 51 * @since 4685 50 52 */ 51 public class SessionSaveAsAction extends DiskAccessAction {53 public class SessionSaveAsAction extends DiskAccessAction implements MapFrameListener { 52 54 53 55 private transient List<Layer> layers; … … 71 73 null, toolbar, "save_as-session", installAdapters); 72 74 putValue("help", ht("/Action/SessionSaveAs")); 75 Main.addMapFrameListener(this); 73 76 } 74 77 … … 284 287 setEnabled(Main.isDisplayingMapView()); 285 288 } 289 290 @Override 291 public void mapFrameInitialized(MapFrame oldFrame, MapFrame newFrame) { 292 updateEnabledState(); 293 }; 286 294 }
Note:
See TracChangeset
for help on using the changeset viewer.