Changeset 10279 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2016-05-25T08:52:14+02:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/Main.java
r10271 r10279 92 92 import org.openstreetmap.josm.gui.layer.AbstractModifiableLayer; 93 93 import org.openstreetmap.josm.gui.layer.Layer; 94 import org.openstreetmap.josm.gui.layer. LayerManagerWithActive;94 import org.openstreetmap.josm.gui.layer.MainLayerManager; 95 95 import org.openstreetmap.josm.gui.layer.OsmDataLayer; 96 96 import org.openstreetmap.josm.gui.layer.OsmDataLayer.CommandQueueListener; … … 199 199 * @since 10271 200 200 */ 201 private static final LayerManagerWithActive layerManager = new LayerManagerWithActive();201 private static final MainLayerManager layerManager = new MainLayerManager(); 202 202 203 203 /** … … 740 740 * Returns the main layer manager that is used by the map view. 741 741 * @return The layer manager. The value returned will never change. 742 * @since 1027 1743 */ 744 public static LayerManagerWithActivegetLayerManager() {742 * @since 10279 743 */ 744 public static MainLayerManager getLayerManager() { 745 745 return layerManager; 746 746 } -
trunk/src/org/openstreetmap/josm/gui/MapView.java
r10277 r10279 61 61 import org.openstreetmap.josm.gui.layer.LayerManager.LayerOrderChangeEvent; 62 62 import org.openstreetmap.josm.gui.layer.LayerManager.LayerRemoveEvent; 63 import org.openstreetmap.josm.gui.layer. LayerManagerWithActive;64 import org.openstreetmap.josm.gui.layer. LayerManagerWithActive.ActiveLayerChangeEvent;65 import org.openstreetmap.josm.gui.layer. LayerManagerWithActive.ActiveLayerChangeListener;63 import org.openstreetmap.josm.gui.layer.MainLayerManager; 64 import org.openstreetmap.josm.gui.layer.MainLayerManager.ActiveLayerChangeEvent; 65 import org.openstreetmap.josm.gui.layer.MainLayerManager.ActiveLayerChangeListener; 66 66 import org.openstreetmap.josm.gui.layer.MapViewPaintable; 67 67 import org.openstreetmap.josm.gui.layer.MapViewPaintable.PaintableInvalidationEvent; … … 91 91 public class MapView extends NavigatableComponent 92 92 implements PropertyChangeListener, PreferenceChangedListener, OsmDataLayer.LayerStateChangeListener, 93 LayerManager.LayerChangeListener, LayerManagerWithActive.ActiveLayerChangeListener {93 LayerManager.LayerChangeListener, MainLayerManager.ActiveLayerChangeListener { 94 94 /** 95 95 * Interface to notify listeners of a layer change. … … 265 265 * This class is an adapter for the old layer change interface. 266 266 * <p> 267 * New implementations should use {@link org.openstreetmap.josm.gui.layer. LayerManagerWithActive.ActiveLayerChangeListener}267 * New implementations should use {@link org.openstreetmap.josm.gui.layer.MainLayerManager.ActiveLayerChangeListener} 268 268 * @author Michael Zangl 269 269 * @since 10271 … … 438 438 * A list of all layers currently loaded. If we support multiple map views, this list may be different for each of them. 439 439 */ 440 private final LayerManagerWithActivelayerManager;440 private final MainLayerManager layerManager; 441 441 442 442 /** … … 479 479 * @param viewportData the initial viewport of the map. Can be null, then 480 480 * the viewport is derived from the layer data. 481 */ 482 public MapView(LayerManagerWithActive layerManager, final JPanel contentPane, final ViewportData viewportData) { 481 * @since 10279 482 */ 483 public MapView(MainLayerManager layerManager, final JPanel contentPane, final ViewportData viewportData) { 483 484 this.layerManager = layerManager; 484 485 initialViewport = viewportData; … … 632 633 * 633 634 * @return the next active data layer 634 * @deprecated now handled by {@link LayerManagerWithActive}635 * @deprecated now handled by {@link MainLayerManager} 635 636 */ 636 637 @Deprecated -
trunk/src/org/openstreetmap/josm/gui/layer/MainLayerManager.java
r10277 r10279 17 17 * The edit layer is an data layer that we currently work with. 18 18 * @author Michael Zangl 19 * @since 1027 119 * @since 10279 20 20 */ 21 public class LayerManagerWithActiveextends LayerManager {21 public class MainLayerManager extends LayerManager { 22 22 /** 23 23 * This listener listens to changes of the active or the edit layer. … … 53 53 * @param previousActiveLayer the previous active layer 54 54 */ 55 ActiveLayerChangeEvent( LayerManagerWithActivesource, OsmDataLayer previousEditLayer,55 ActiveLayerChangeEvent(MainLayerManager source, OsmDataLayer previousEditLayer, 56 56 Layer previousActiveLayer) { 57 57 super(source); … … 77 77 78 78 @Override 79 public LayerManagerWithActivegetSource() {80 return ( LayerManagerWithActive) super.getSource();79 public MainLayerManager getSource() { 80 return (MainLayerManager) super.getSource(); 81 81 } 82 82 }
Note:
See TracChangeset
for help on using the changeset viewer.