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

Adapt to latest josm

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/openlayers/src/org/openstreetmap/josm/plugins/openLayers/OpenLayersLayer.java

    r19050 r22550  
    11package org.openstreetmap.josm.plugins.openLayers;
    22
    3 import java.awt.Component;
    43import java.awt.Dimension;
    54import java.awt.Graphics2D;
     
    76import java.beans.PropertyChangeListener;
    87
     8import javax.swing.Action;
    99import javax.swing.Icon;
    10 import javax.swing.JMenuItem;
    11 import javax.swing.JSeparator;
    1210
    1311import org.mozilla.javascript.NativeArray;
     
    7775
    7876    @Override
    79     public Component[] getMenuEntries() {
    80         return new Component[] {
    81             new JMenuItem(LayerListDialog.getInstance().createShowHideLayerAction(this)),
    82             new JMenuItem(LayerListDialog.getInstance().createDeleteLayerAction(this)),
    83             new JSeparator(),
     77    public Action[] getMenuEntries() {
     78        return new Action[] {
     79            LayerListDialog.getInstance().createShowHideLayerAction(),
     80            LayerListDialog.getInstance().createDeleteLayerAction(),
     81            SeparatorLayerAction.INSTANCE,
    8482            // color,
    85             new JMenuItem(new RenameLayerAction(getAssociatedFile(), this)),
    86             new JSeparator(),
    87             new JMenuItem(new LayerListPopup.InfoAction(this)) };
     83            new RenameLayerAction(getAssociatedFile(), this),
     84            SeparatorLayerAction.INSTANCE,
     85            new LayerListPopup.InfoAction(this) };
    8886    }
    8987
Note: See TracChangeset for help on using the changeset viewer.