Changeset 22547 in osm for applications/editors/josm/plugins/measurement
- Timestamp:
- 2010-08-03T08:11:51+02:00 (15 years ago)
- Location:
- applications/editors/josm/plugins/measurement
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/measurement/build.xml
r21706 r22547 18 18 ** 19 19 ** To build against the core in ../../core, create a correct manifest and deploy to 20 ** SVN, 20 ** SVN, 21 21 ** set the properties commit.message and plugin.main.version 22 22 ** and run … … 28 28 29 29 <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" /> 31 31 32 32 … … 87 87 88 88 <!-- 89 ************************** Publishing the plugin *********************************** 89 ************************** Publishing the plugin *********************************** 90 90 --> 91 91 <!-- 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 93 93 ** property ${coreversion.info.entry.revision} 94 94 ** … … 139 139 140 140 <!-- 141 ** commits the plugin.jar 141 ** commits the plugin.jar 142 142 --> 143 143 <target name="commit-dist"> 144 144 <echo> 145 145 ***** Properties of published ${plugin.jar} ***** 146 Commit message : '${commit.message}' 146 Commit message : '${commit.message}' 147 147 Plugin-Mainversion: ${plugin.main.version} 148 148 JOSM build version: ${coreversion.info.entry.revision} 149 149 Plugin-Version : ${version.entry.commit.revision} 150 ***** / Properties of published ${plugin.jar} ***** 151 150 ***** / Properties of published ${plugin.jar} ***** 151 152 152 Now commiting ${plugin.jar} ... 153 153 </echo> -
applications/editors/josm/plugins/measurement/src/org/openstreetmap/josm/plugins/measurement/MeasurementLayer.java
r19681 r22547 15 15 16 16 import javax.swing.AbstractAction; 17 import javax.swing.Action; 17 18 import javax.swing.Box; 18 19 import javax.swing.DefaultListCellRenderer; … … 24 25 import javax.swing.JLabel; 25 26 import javax.swing.JList; 26 import javax.swing.JMenuItem;27 27 import javax.swing.JOptionPane; 28 import javax.swing.JSeparator;29 28 30 29 import org.openstreetmap.josm.Main; … … 94 93 } 95 94 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(), 99 98 // TODO: implement new JMenuItem(new LayerListDialog.DeleteLayerAction(this)), 100 new JSeparator(),101 new JMenuItem(newGPXLayerImportAction(this)),102 new JSeparator(),103 new JMenuItem(newLayerListPopup.InfoAction(this))};99 SeparatorLayerAction.INSTANCE, 100 new GPXLayerImportAction(this), 101 SeparatorLayerAction.INSTANCE, 102 new LayerListPopup.InfoAction(this)}; 104 103 } 105 104 … … 222 221 } 223 222 224 public static double OldangleBetween(LatLon p1, LatLon p2){223 public static double oldAngleBetween(LatLon p1, LatLon p2){ 225 224 double lat1, lon1, lat2, lon2; 226 225 double dlon, dlat;
Note:
See TracChangeset
for help on using the changeset viewer.