Changeset 18404 in osm for applications/editors/josm/plugins/wmsplugin
- Timestamp:
- 2009-11-01T13:19:59+01:00 (15 years ago)
- Location:
- applications/editors/josm/plugins/wmsplugin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/wmsplugin/build.xml
r17817 r18404 18 18 ** To build against the core in ../../core, create a correct manifest and deploy to 19 19 ** SVN, run 20 ** - set the property commit.message 20 ** - set the property commit.message 21 21 ** - set the property josm.reference.release to lowest JOSM release number this 22 22 ** plugin build is compatible with … … 32 32 <property name="ant.build.javac.target" value="1.5"/> 33 33 <property name="commit.message" value="fixing JOSM issue #3186" /> 34 <property name="josm.reference.release" value="2 196" />35 34 <property name="josm.reference.release" value="2323" /> 35 36 36 <target name="init"> 37 37 <mkdir dir="${plugin.build.dir}"/> … … 85 85 <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/> 86 86 </target> 87 87 88 88 <target name="core-info"> 89 89 <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false"> … … 98 98 </target> 99 99 100 100 101 101 <target name="commit-current"> 102 102 <echo>Commiting the plugin source ...</echo> … … 106 106 <arg value="-m "${commit.message}""/> 107 107 <arg value="."/> 108 </exec> 108 </exec> 109 109 </target> 110 110 111 111 112 112 <target name="update-current"> 113 113 <echo>Updating basedir ...</echo> … … 116 116 <arg value="up"/> 117 117 <arg value="."/> 118 </exec> 118 </exec> 119 119 <echo>Updating ${plugin.jar} ...</echo> 120 120 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> … … 122 122 <arg value="up"/> 123 123 <arg value="${plugin.jar}"/> 124 </exec> 124 </exec> 125 125 </target> 126 126 127 127 <target name="commit-dist"> 128 128 <echo>Commiting ${plugin.jar} ...</echo> … … 132 132 <arg value="-m "${commit.message}""/> 133 133 <arg value="${plugin.jar}"/> 134 </exec> 134 </exec> 135 135 </target> 136 136 137 137 <target name="deploy" depends="core-info,commit-current,update-current,clean,dist,commit-dist"> 138 138 </target> -
applications/editors/josm/plugins/wmsplugin/src/wmsplugin/WMSPlugin.java
r17556 r18404 1 1 package wmsplugin; 2 2 3 import static org.openstreetmap.josm. tools.I18n.marktr;3 import static org.openstreetmap.josm.gui.help.HelpUtil.ht; 4 4 import static org.openstreetmap.josm.tools.I18n.tr; 5 5 … … 51 51 static int overlapEast = 14; 52 52 static int overlapNorth = 4; 53 53 54 54 // remember state of menu item to restore on changed preferences 55 55 static private boolean menuEnabled = false; 56 56 57 57 protected void initExporterAndImporter() { 58 58 ExtensionFileFilter.exporters.add(new WMSLayerExporter()); … … 94 94 TreeSet<String> keys = new TreeSet<String>(prefs.keySet()); 95 95 96 // Here we load the settings for "overlap" checkbox and spinboxes. 97 98 try { 99 doOverlap = Boolean.valueOf(prefs.get("wmsplugin.url.overlap")); 100 } catch (Exception e) {} // If sth fails, we drop to default settings. 101 102 try { 103 overlapEast = Integer.valueOf(prefs.get("wmsplugin.url.overlapEast")); 104 } catch (Exception e) {} // If sth fails, we drop to default settings. 105 106 try { 107 overlapNorth = Integer.valueOf(prefs.get("wmsplugin.url.overlapNorth")); 108 } catch (Exception e) {} // If sth fails, we drop to default settings. 96 // Here we load the settings for "overlap" checkbox and spinboxes. 97 98 try { 99 doOverlap = Boolean.valueOf(prefs.get("wmsplugin.url.overlap")); 100 } catch (Exception e) {} // If sth fails, we drop to default settings. 101 102 try { 103 overlapEast = Integer.valueOf(prefs.get("wmsplugin.url.overlapEast")); 104 } catch (Exception e) {} // If sth fails, we drop to default settings. 105 106 try { 107 overlapNorth = Integer.valueOf(prefs.get("wmsplugin.url.overlapNorth")); 108 } catch (Exception e) {} // If sth fails, we drop to default settings. 109 109 110 110 // And then the names+urls of WMS servers … … 169 169 170 170 if (wmsJMenu == null) 171 wmsJMenu = menu.addMenu( marktr("WMS"), KeyEvent.VK_W, menu.defaultMenuPos);171 wmsJMenu = menu.addMenu(tr("WMS"), KeyEvent.VK_W, menu.defaultMenuPos, ht("/Plugin/WMS")); 172 172 else 173 173 wmsJMenu.removeAll();
Note:
See TracChangeset
for help on using the changeset viewer.