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/walkingpapers/src/org/openstreetmap/josm/plugins/walkingpapers/WalkingPapersLayer.java

    r19074 r22549  
    44
    55import java.awt.Color;
    6 import java.awt.Component;
    76import java.awt.Graphics2D;
    87import java.awt.Image;
     
    1413import java.util.TreeSet;
    1514
     15import javax.swing.Action;
    1616import javax.swing.Icon;
    17 import javax.swing.JMenuItem;
    18 import javax.swing.JSeparator;
    1917
    2018import org.openstreetmap.josm.Main;
     
    119117        }
    120118
    121         class TileTimeComp implements Comparator<WalkingPapersTile> {
     119        static class TileTimeComp implements Comparator<WalkingPapersTile> {
    122120                public int compare(WalkingPapersTile s1, WalkingPapersTile s2) {
    123121                        long t1 = s1.access_time();
     
    349347
    350348        @Override
    351         public Component[] getMenuEntries() {
    352                 return new Component[] {
    353                                 new JMenuItem(LayerListDialog.getInstance().createShowHideLayerAction(this)),
    354                                 new JMenuItem(LayerListDialog.getInstance().createDeleteLayerAction(this)),
    355                                 new JSeparator(),
     349        public Action[] getMenuEntries() {
     350                return new Action[] {
     351                                LayerListDialog.getInstance().createShowHideLayerAction(),
     352                                LayerListDialog.getInstance().createDeleteLayerAction(),
     353                                SeparatorLayerAction.INSTANCE,
    356354                                // color,
    357355                                // new JMenuItem(new RenameLayerAction(associatedFile, this)),
    358                                 new JSeparator(),
    359                                 new JMenuItem(new LayerListPopup.InfoAction(this)) };
     356                                SeparatorLayerAction.INSTANCE,
     357                                new LayerListPopup.InfoAction(this) };
    360358        }
    361359
Note: See TracChangeset for help on using the changeset viewer.