[josm-dev] Netbeans // older josm code?

Werner Horsch werner.horsch at gmail.com
Sun Feb 27 17:41:30 GMT 2011


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
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
Thanks
On Sat, Feb 26, 2011 at 10:13 AM, Marko Mäkelä <marko.makela at iki.fi> wrote:

> On Sat, Feb 26, 2011 at 12:45:04AM -0300, Werner Horsch wrote:
>
>> Question
>> I'm updating an old coded plugin and in order to understand some stuff I
>> need to look to some old "way.java" file, probably from 2008 How do I find
>> it?
>>
>
> You can use "svn log -v" for this. If you know the directory where file was
> at that time, you can limit the search by giving an argument, such as
> svn log -v
> http://svn.openstreetmap.org/applications/editors/josm/plugins/x | less
>
> In the log output, using your favourite pager ("less" in the above example)
> you can search for the file name or the approximate date. Then you can do
> something like this:
>
> svn cat -r12345
> http://svn.openstreetmap.org/applications/editors/josm/plugins/x/way.java
>
> svn update -r12345 plugins/x/way.java (if it exists in your working copy)
> svn checkout -r12345 plugins/x/way.java
>
> (Note that the JOSM core is at http://josm.openstreetmap.de/svn/trunk,
> but plugins are in the OpenStreetMap Subversion repository.)
>
> I suggest that you visit http://subversion.apache.org/docs/ or
> http://svnbook.red-bean.com/.
>
> Best regards,
>
>        Marko
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: IntersectWayAction.java
Type: application/octet-stream
Size: 4550 bytes
Desc: not available
URL: <http://lists.openstreetmap.org/pipermail/josm-dev/attachments/20110227/3a13e1c8/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: IntersectWayPlugin.java
Type: application/octet-stream
Size: 396 bytes
Desc: not available
URL: <http://lists.openstreetmap.org/pipermail/josm-dev/attachments/20110227/3a13e1c8/attachment-0001.obj>


More information about the josm-dev mailing list