Changeset 33904 in osm for applications/editors/josm/plugins
- Timestamp:
- 2017-11-25T01:59:21+01:00 (7 years ago)
- Location:
- applications/editors/josm/plugins/HouseNumberTaggingTool
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/HouseNumberTaggingTool/build.xml
r33714 r33904 4 4 <property name="commit.message" value="Initial version."/> 5 5 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 6 <property name="plugin.main.version" value="1 2859"/>6 <property name="plugin.main.version" value="13007"/> 7 7 <!-- Configure these properties (replace "..." accordingly). 8 8 See https://josm.openstreetmap.de/wiki/DevelopersGuide/DevelopingPlugins -
applications/editors/josm/plugins/HouseNumberTaggingTool/src/org/openstreetmap/josm/plugins/housenumbertool/HouseNumberTaggingToolPlugin.java
r33714 r33904 18 18 public HouseNumberTaggingToolPlugin(PluginInformation info) { 19 19 super(info); 20 action = new LaunchAction(getPluginDir ());20 action = new LaunchAction(getPluginDirs().getUserDataDirectory(false)); 21 21 MainMenu.add(MainApplication.getMenu().dataMenu, action, false,0); 22 22 } -
applications/editors/josm/plugins/HouseNumberTaggingTool/src/org/openstreetmap/josm/plugins/housenumbertool/LaunchAction.java
r33714 r33904 3 3 import java.awt.event.ActionEvent; 4 4 import java.awt.event.KeyEvent; 5 import java.io.File; 5 6 import java.util.Collection; 6 7 … … 15 16 private OsmPrimitive selection = null; 16 17 17 private StringpluginDir;18 private File pluginDir; 18 19 19 20 /** … … 21 22 * @param pluginDir plugin directory 22 23 */ 23 public LaunchAction( StringpluginDir) {24 public LaunchAction(File pluginDir) { 24 25 super("HouseNumberTaggingTool", 25 26 "home-icon32", -
applications/editors/josm/plugins/HouseNumberTaggingTool/src/org/openstreetmap/josm/plugins/housenumbertool/TagDialog.java
r33714 r33904 73 73 private static final Logger LOGGER = Logger.getLogger(TagDialog.class.getName()); 74 74 75 private StringpluginDir;75 private File pluginDir; 76 76 private AutoCompletionManager acm; 77 77 private OsmPrimitive selection; … … 102 102 * @param selection selected primitive 103 103 */ 104 public TagDialog( StringpluginDir, OsmPrimitive selection) {104 public TagDialog(File pluginDir, OsmPrimitive selection) { 105 105 super(Main.parent, tr("House Number Editor"), new String[] { tr("OK"), tr("Cancel") }, true); 106 106 this.pluginDir = pluginDir; … … 404 404 405 405 protected void saveDto(Dto dto) { 406 File path = new File(pluginDir);406 File path = pluginDir; 407 407 File fileName = new File(pluginDir + TagDialog.TEMPLATE_DATA); 408 408
Note:
See TracChangeset
for help on using the changeset viewer.