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

Adapt to latest josm

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/measurement/src/org/openstreetmap/josm/plugins/measurement/MeasurementLayer.java

    r19681 r22547  
    1515
    1616import javax.swing.AbstractAction;
     17import javax.swing.Action;
    1718import javax.swing.Box;
    1819import javax.swing.DefaultListCellRenderer;
     
    2425import javax.swing.JLabel;
    2526import javax.swing.JList;
    26 import javax.swing.JMenuItem;
    2727import javax.swing.JOptionPane;
    28 import javax.swing.JSeparator;
    2928
    3029import org.openstreetmap.josm.Main;
     
    9493    }
    9594
    96     @Override public Component[] getMenuEntries() {
    97         return new Component[]{
    98             new JMenuItem(LayerListDialog.getInstance().createShowHideLayerAction(this)),
     95    @Override public Action[] getMenuEntries() {
     96        return new Action[]{
     97            LayerListDialog.getInstance().createShowHideLayerAction(),
    9998            // TODO: implement new JMenuItem(new LayerListDialog.DeleteLayerAction(this)),
    100             new JSeparator(),
    101             new JMenuItem(new GPXLayerImportAction(this)),
    102             new JSeparator(),
    103             new JMenuItem(new LayerListPopup.InfoAction(this))};
     99            SeparatorLayerAction.INSTANCE,
     100            new GPXLayerImportAction(this),
     101            SeparatorLayerAction.INSTANCE,
     102            new LayerListPopup.InfoAction(this)};
    104103    }
    105104
     
    222221    }
    223222
    224     public static double OldangleBetween(LatLon p1, LatLon p2){
     223    public static double oldAngleBetween(LatLon p1, LatLon p2){
    225224        double lat1, lon1, lat2, lon2;
    226225        double dlon, dlat;
Note: See TracChangeset for help on using the changeset viewer.