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

Adapt to latest josm

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/OsbLayer.java

    r20682 r22548  
    3030import static org.openstreetmap.josm.tools.I18n.tr;
    3131
    32 import java.awt.Component;
    3332import java.awt.Dimension;
    3433import java.awt.Graphics2D;
     
    4241import java.util.List;
    4342
     43import javax.swing.Action;
    4444import javax.swing.Icon;
    4545import javax.swing.ImageIcon;
    46 import javax.swing.JMenuItem;
    47 import javax.swing.JSeparator;
    4846import javax.swing.JToolTip;
    4947
     
    7472    private static ImageIcon iconError = OsbPlugin.loadIcon("icon_error16.png");
    7573    private static ImageIcon iconValid = OsbPlugin.loadIcon("icon_valid16.png");
    76    
     74
    7775    private OsbDialog dialog;
    7876
     
    10098
    10199    @Override
    102     public Component[] getMenuEntries() {
    103         return new Component[]{
    104                 new JMenuItem(LayerListDialog.getInstance().createShowHideLayerAction(this)),
    105                 new JMenuItem(LayerListDialog.getInstance().createDeleteLayerAction(this)),
    106                 new JSeparator(),
    107                 new JMenuItem(new RenameLayerAction(null, this)),
    108                 new JSeparator(),
    109                 new JMenuItem(new LayerListPopup.InfoAction(this))};
     100    public Action[] getMenuEntries() {
     101        return new Action[]{
     102                LayerListDialog.getInstance().createShowHideLayerAction(),
     103                LayerListDialog.getInstance().createDeleteLayerAction(),
     104                SeparatorLayerAction.INSTANCE,
     105                new RenameLayerAction(null, this),
     106                SeparatorLayerAction.INSTANCE,
     107                new LayerListPopup.InfoAction(this)};
    110108    }
    111109
     
    272270
    273271    public void mouseExited(MouseEvent e) {}
    274    
     272
    275273    public DataSet getDataSet() {
    276274        return data;
Note: See TracChangeset for help on using the changeset viewer.