Werner Horsch wrote:
Thanks Marko and Sebastian your tips were very useful. I've been able to
clean the plugin from coding errors. I'm struggling with too many things
which are far away from my basic knowledge

I've tried
a) running JOSM out of the IDE doesn't allow me to see the plugin and got a
message JOSM strange version you should update

Does it work if you build josm from the command line?

In principle you can ignore this, it doesn't matter usually.

b) compiling the plugin to a jar from the comand line, no idea how to do
it from the IDE for just this piece, then copied it to the folder where the
rest of the plugins are. Opened my regualr installed version of JOSM, check
the plugin under preferences, but still didn't appear on the menu
I think the problem relies on:
super(I18n.tr("create node on intersections"), "intersectway",
I18n.tr("create nodes on every intersection"),
Shortcut.registerShortcut("tools:Intersec way", I18n.tr("Tool: {0}", new
Object[] { I18n.tr("pr") }), 73, 3, 1), true);
Attached is the code of the plugin if someone wants to give some hint I will
appreciate it

How do you compile the plugin? Try the following strategy: Start with some existing pluign, see if you are able to build and run it. Then transform it step by step into what you like to have.

It is possible to develop plugins in the IDE. (Debugging and changing code at runtime works as well.) Easiest way to do this in netbeans is to create a Free Form project and use the existing build script. Add the JOSM core project as a library.

The plugin ant files depend on the binary core/dist/josm-custom.jar, so you might want to change that to core/netbeans/dist/josm.jar.

Your plugin has a wrong constructor and the Manifest file must have the right form. (see other plugins)


Sebastian

_______________________________________________
josm-dev mailing list
josm-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/josm-dev

Reply via email to