Changes between Version 93 and Version 94 of DevelopersGuide/DevelopingPlugins


Ignore:
Timestamp:
2019-12-03T21:12:30+01:00 (6 years ago)
Author:
Bjoeni
Comment:

Extended debugging instructions and fixed typo

Legend:

Unmodified
Added
Removed
Modified
  • DevelopersGuide/DevelopingPlugins

    v93 v94  
    5858
    59591. Import your plugin as an existing project in Eclipse
    60 2. Open your project properties to add required libraries (Properties -> Java Build Path -> Libraries -> Add External JARs). You must at least add `josm/core/dist/josm-custom.jar`, but you may also add your plugin dependencies if any (for instance `josm/dist/utilsplugin2.jar`).
    61 3. Create a `Run Configuration` (Properties -> Run/Debug Settings -> New -> Java Application). Main class must be set to `org.openstreetmap.josm.gui.MainApplication`.
    62 4. You can know tweak your plugin and/or set breakpoints… etc.
     602. Either
     61  a. Import the JOSM project to the same workspace and add it as a required project on the build path (your extension -> Properties -> Java Build Path -> Projects -> Add). Or
     62  b. Open your project properties to add required libraries (Properties -> Java Build Path -> Libraries -> Add External JARs). You must at least add `josm/core/dist/josm-custom.jar`, but you may also add your plugin dependencies if any (for instance `josm/dist/utilsplugin2.jar`).
     633. Make sure the plugin is added to the `plugins` list in the advanced preferences (Einstein) in JOSM and copy any version of your extension to the plugin directory (essentially, only the entry point is relevant here, so `plugin.class` has to be set correctly).
     644. Create a `Run Configuration` (Properties -> Run/Debug Settings -> New -> Java Application). Main class must be set to `org.openstreetmap.josm.gui.MainApplication`.
     655. You can now tweak your plugin and/or set breakpoints… etc.
    6366
    6467== Automated testing ==