Changeset 22017 in osm for applications
- Timestamp:
- 2010-06-25T21:30:27+02:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/DirectUpload
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/DirectUpload/build.xml
r21706 r22017 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 constructor signature of plugin main class" /> 30 <property name="plugin.main.version" value=" 2830" />30 <property name="plugin.main.version" value="3338" /> 31 31 32 32 <property name="josm" location="../../core/dist/josm-custom.jar"/> … … 86 86 </target> 87 87 <!-- 88 ************************** Publishing the plugin *********************************** 88 ************************** Publishing the plugin *********************************** 89 89 --> 90 90 <!-- 91 ** extracts the JOSM release for the JOSM version in ../core and saves it in the 91 ** extracts the JOSM release for the JOSM version in ../core and saves it in the 92 92 ** property ${coreversion.info.entry.revision} 93 93 ** … … 138 138 139 139 <!-- 140 ** commits the plugin.jar 140 ** commits the plugin.jar 141 141 --> 142 142 <target name="commit-dist"> 143 143 <echo> 144 144 ***** Properties of published ${plugin.jar} ***** 145 Commit message : '${commit.message}' 145 Commit message : '${commit.message}' 146 146 Plugin-Mainversion: ${plugin.main.version} 147 147 JOSM build version: ${coreversion.info.entry.revision} 148 148 Plugin-Version : ${version.entry.commit.revision} 149 ***** / Properties of published ${plugin.jar} ***** 150 149 ***** / Properties of published ${plugin.jar} ***** 150 151 151 Now commiting ${plugin.jar} ... 152 152 </echo> -
applications/editors/josm/plugins/DirectUpload/src/org/openstreetmap/josm/plugins/DirectUpload/UploadDataGui.java
r17532 r22017 61 61 TRACKABLE (tr("Trackable (only shared as anonymous, ordered points with timestamps)")), 62 62 IDENTIFIABLE (tr("Identifiable (shown in trace list and as identifiable, ordered points with timestamps)")); 63 63 64 64 public final String description; 65 65 visibility(String description) { 66 66 this.description = description; 67 67 } 68 68 69 69 /** 70 70 * "Converts" a given description into the actual enum. Returns null if no matching description … … 75 75 public static visibility desc2visi(Object desc) { 76 76 for (visibility v : visibility.values()) { 77 if(desc.equals( (String)v.description))77 if(desc.equals(v.description)) 78 78 return v; 79 79 } 80 80 return null; 81 81 } 82 83 public String toString() { 82 83 @Override 84 public String toString() { 84 85 return this.name().toLowerCase(); 85 86 } 86 87 } 87 88 88 89 89 90 // User for log in when uploading trace 90 91 private String username = Main.pref.get("osm-server.username"); … … 136 137 visibilityLabel.setToolTipText(tr("Defines the visibility of your trace for other OSM users.")); 137 138 for(visibility v : visibility.values()) { 138 visibilityCombo.addItem( (String)v.description);139 visibilityCombo.addItem(v.description); 139 140 } 140 141 UrlLabel visiUrl = new UrlLabel(tr("http://wiki.openstreetmap.org/wiki/Visibility_of_GPS_traces"), tr("(What does that mean?)")); … … 508 509 * Overrides the default actions. Will not close the window when upload trace is clicked 509 510 */ 510 @Override protected void buttonAction( ActionEvent evt) {511 @Override protected void buttonAction(int buttonIndex, ActionEvent evt) { 511 512 String a = evt.getActionCommand(); 512 513 if(uploadTraceText.equals(a))
Note:
See TracChangeset
for help on using the changeset viewer.