#9518 closed enhancement (fixed)
Automatically reload local config files when changed
Reported by: | naoliv | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | 14.06 |
Component: | Core | Version: | |
Keywords: | Cc: |
Description
It would be nice if JOSM could automatically reload local config files (validator .cfg or .mapcss, for example) when they get modified (using some file notification system for this).
Attachments (0)
Change History (14)
comment:1 by , 10 years ago
Milestone: | → 14.05 |
---|
comment:2 by , 10 years ago
That would be very helpful. When you edit and test mappaint styles, you always need to restart JOSM or delete and re add the style to JOSM after every little change to see the result. That is a bit annoying.
follow-up: 4 comment:3 by , 10 years ago
Concerning map styles, there is already a mechanism with mappaint.auto_reload_local_styles
in the Map Paint dialog, which can be replaced by a generic WatchService
approach.
comment:4 by , 10 years ago
Replying to Don-vip:
Concerning map styles, there is already a mechanism with
mappaint.auto_reload_local_styles
in the Map Paint dialog.
Thanks for the hint, that helps a lot. Though this does only work if the dialog is displayed in the sidebar.
comment:5 by , 10 years ago
Yes I plan to replace this feature by a better mechanism. But I'll keep the preference entry.
comment:6 by , 10 years ago
Milestone: | 14.05 → 14.06 |
---|
That's something for Java 7: http://docs.oracle.com/javase/tutorial/essential/io/notification.html