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

Adapt to latest josm

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/routing/src/com/innovant/josm/plugin/routing/RoutingLayer.java

    r18962 r22549  
    3030import java.awt.BasicStroke;
    3131import java.awt.Color;
    32 import java.awt.Component;
    3332import java.awt.Graphics;
    3433import java.awt.Graphics2D;
     
    3938import java.util.List;
    4039
     40import javax.swing.Action;
    4141import javax.swing.Icon;
    42 import javax.swing.JMenuItem;
    43 import javax.swing.JSeparator;
    4442
    4543import org.apache.log4j.Logger;
     
    182180     */
    183181    @Override
    184     public Component[] getMenuEntries() {
    185         Collection<Component> components = new ArrayList<Component>();
    186         components.add(new JMenuItem(LayerListDialog.getInstance().createShowHideLayerAction(this)));
     182    public Action[] getMenuEntries() {
     183        Collection<Action> components = new ArrayList<Action>();
     184        components.add(LayerListDialog.getInstance().createShowHideLayerAction());
    187185//        components.add(new JMenuItem(new LayerListDialog.ShowHideMarkerText(this)));
    188         components.add(new JMenuItem(LayerListDialog.getInstance().createDeleteLayerAction(this)));
    189         components.add(new JSeparator());
    190         components.add(new JMenuItem(new RenameLayerAction(getAssociatedFile(), this)));
    191         components.add(new JSeparator());
    192         components.add(new JMenuItem(new LayerListPopup.InfoAction(this)));
    193         return components.toArray(new Component[0]);
     186        components.add(LayerListDialog.getInstance().createDeleteLayerAction());
     187        components.add(SeparatorLayerAction.INSTANCE);
     188        components.add(new RenameLayerAction(getAssociatedFile(), this));
     189        components.add(SeparatorLayerAction.INSTANCE);
     190        components.add(new LayerListPopup.InfoAction(this));
     191        return components.toArray(new Action[0]);
    194192    }
    195193
Note: See TracChangeset for help on using the changeset viewer.