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

Adapt to latest josm

Location:
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/ErrorLayer.java

    r20828 r22550  
    44import static org.openstreetmap.josm.tools.I18n.tr;
    55
    6 import java.awt.Component;
    76import java.awt.Graphics2D;
    87import java.util.Enumeration;
    98import java.util.List;
    109
     10import javax.swing.Action;
    1111import javax.swing.Icon;
    12 import javax.swing.JMenuItem;
    13 import javax.swing.JSeparator;
    1412import javax.swing.tree.DefaultMutableTreeNode;
    1513
     
    124122
    125123    @Override
    126     public Component[] getMenuEntries() {
    127         return new Component[] { new JMenuItem(LayerListDialog.getInstance().createShowHideLayerAction(this)),
    128                 new JMenuItem(LayerListDialog.getInstance().createDeleteLayerAction(this)),
    129                 new JSeparator(),
    130                 new JMenuItem(new RenameLayerAction(null, this)), new JSeparator(),
    131                 new JMenuItem(new LayerListPopup.InfoAction(this)) };
     124    public Action[] getMenuEntries() {
     125        return new Action[] {
     126                LayerListDialog.getInstance().createShowHideLayerAction(),
     127                LayerListDialog.getInstance().createDeleteLayerAction(),
     128                SeparatorLayerAction.INSTANCE,
     129                new RenameLayerAction(null, this),
     130                SeparatorLayerAction.INSTANCE,
     131                new LayerListPopup.InfoAction(this) };
    132132    }
    133133
  • TabularUnified applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/GridLayer.java

    r20828 r22550  
    33
    44import java.awt.Color;
    5 import java.awt.Component;
    65import java.awt.Graphics;
    76import java.awt.Graphics2D;
     
    98import java.awt.geom.Point2D;
    109
     10import javax.swing.Action;
    1111import javax.swing.Icon;
    12 import javax.swing.JMenuItem;
    13 import javax.swing.JSeparator;
    1412
    1513import org.openstreetmap.josm.Main;
     
    123121
    124122    @Override
    125     public Component[] getMenuEntries()
    126     {
    127         return new Component[]{
    128                 new JMenuItem(LayerListDialog.getInstance().createShowHideLayerAction(this)),
    129                 new JMenuItem(LayerListDialog.getInstance().createDeleteLayerAction(this)),
    130                 new JSeparator(),
    131                 new JMenuItem(new RenameLayerAction(null, this)),
    132                 new JSeparator(),
    133                 new JMenuItem(new LayerListPopup.InfoAction(this))};
     123    public Action[] getMenuEntries()
     124    {
     125        return new Action[] {
     126                LayerListDialog.getInstance().createShowHideLayerAction(),
     127                LayerListDialog.getInstance().createDeleteLayerAction(),
     128                SeparatorLayerAction.INSTANCE,
     129                new RenameLayerAction(null, this),
     130                SeparatorLayerAction.INSTANCE,
     131                new LayerListPopup.InfoAction(this)};
    134132    }
    135133
Note: See TracChangeset for help on using the changeset viewer.