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

Adapt to latest josm

Location:
applications/editors/josm/plugins/measurement
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/measurement/build.xml

    r21706 r22547  
    1818**
    1919** To build against the core in ../../core, create a correct manifest and deploy to
    20 ** SVN, 
     20** SVN,
    2121**    set the properties commit.message and plugin.main.version
    2222** and run
     
    2828
    2929        <property name="commit.message" value="Changed the constructor signature of the plugin main class" />
    30         <property name="plugin.main.version" value="2907" />
     30        <property name="plugin.main.version" value="3408" />
    3131
    3232
     
    8787
    8888        <!--
    89                  ************************** Publishing the plugin *********************************** 
     89                 ************************** Publishing the plugin ***********************************
    9090                -->
    9191        <!--
    92                 ** extracts the JOSM release for the JOSM version in ../core and saves it in the 
     92                ** extracts the JOSM release for the JOSM version in ../core and saves it in the
    9393                ** property ${coreversion.info.entry.revision}
    9494                **
     
    139139
    140140        <!--
    141                 ** commits the plugin.jar 
     141                ** commits the plugin.jar
    142142                -->
    143143        <target name="commit-dist">
    144144                <echo>
    145145        ***** Properties of published ${plugin.jar} *****
    146         Commit message    : '${commit.message}'                                 
     146        Commit message    : '${commit.message}'
    147147        Plugin-Mainversion: ${plugin.main.version}
    148148        JOSM build version: ${coreversion.info.entry.revision}
    149149        Plugin-Version    : ${version.entry.commit.revision}
    150         ***** / Properties of published ${plugin.jar} *****                                     
    151                                                
     150        ***** / Properties of published ${plugin.jar} *****
     151
    152152        Now commiting ${plugin.jar} ...
    153153        </echo>
  • 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.