Ignore:
Timestamp:
2010-08-03T08:21:38+02:00 (14 years ago)
Author:
jttt
Message:

Adapt to latest josm

Location:
applications/editors/josm/plugins/slippymap/src/org/openstreetmap/josm/plugins/slippymap
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/slippymap/src/org/openstreetmap/josm/plugins/slippymap/SlippyMapLayer.java

    r21136 r22550  
    44
    55import java.awt.Color;
    6 import java.awt.Component;
    76import java.awt.Graphics;
    87import java.awt.Graphics2D;
     
    2120
    2221import javax.swing.AbstractAction;
     22import javax.swing.Action;
    2323import javax.swing.Icon;
    2424import javax.swing.JCheckBoxMenuItem;
    2525import javax.swing.JMenuItem;
    2626import javax.swing.JPopupMenu;
    27 import javax.swing.JSeparator;
    2827import javax.swing.SwingUtilities;
    2928
     
    4443import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor;
    4544import org.openstreetmap.josm.gui.MapView;
     45import org.openstreetmap.josm.gui.MapView.LayerChangeListener;
    4646import org.openstreetmap.josm.gui.dialogs.LayerListDialog;
    4747import org.openstreetmap.josm.gui.dialogs.LayerListPopup;
    4848import org.openstreetmap.josm.gui.layer.Layer;
    4949import org.openstreetmap.josm.tools.ImageProvider;
    50 import org.openstreetmap.josm.gui.MapView.LayerChangeListener;
    5150
    5251/**
     
    993992
    994993    @Override
    995     public Component[] getMenuEntries() {
    996         return new Component[] {
    997                 new JMenuItem(LayerListDialog.getInstance().createShowHideLayerAction(this)),
    998                 new JMenuItem(LayerListDialog.getInstance().createDeleteLayerAction(this)),
    999                 new JSeparator(),
     994    public Action[] getMenuEntries() {
     995        return new Action[] {
     996                LayerListDialog.getInstance().createShowHideLayerAction(),
     997                LayerListDialog.getInstance().createDeleteLayerAction(),
     998                SeparatorLayerAction.INSTANCE,
    1000999                // color,
    1001                 new JMenuItem(new RenameLayerAction(this.getAssociatedFile(), this)),
    1002                 new JSeparator(),
    1003                 new JMenuItem(new LayerListPopup.InfoAction(this)) };
     1000                new RenameLayerAction(this.getAssociatedFile(), this),
     1001                SeparatorLayerAction.INSTANCE,
     1002                new LayerListPopup.InfoAction(this) };
    10041003    }
    10051004
Note: See TracChangeset for help on using the changeset viewer.