[josm-dev] Selecting objects in JOSM
Raphael Mack
ramack at raphael-mack.de
Sun Aug 24 16:07:06 BST 2008
Hi,
quite a while ago
(http://lists.openstreetmap.org/pipermail/josm-dev/2008-March/000797.html)
I started to work on support to edit GPX in JOSM (only drop/filter nodes,
not move and add). Therefore I suggested to add a interface Selectable and
handle selection related things via the layer.
Since then I was quite busy, but will probably find more time in the
upcoming months, so I'd like to start a new try to get that selection
stuff in. Since there are quite a few new names on this list since then, I
hope to get a bit more feedback than last time. - else I'll just make it
work and commit.
I do not have a patch against a new version yet, therefore I try to
summarize the main changes:
- new interface Selectable, which shall be implemented by all objects which
may be selected (OsmPrimitives, Gpx-/WayPoints, but also Markers, and the
like)
- SelectionChangeListeners are not registered at the DataSet anymore, but
in Main, now.
- each layer stores it's own set of selected objects (Selectables)
There is still some work left to get the latest features like virtual nodes
in, but I'd be glad to hear, that you are interested in my changes, else I
just stop working on it.
Cheers,
Rapha
More information about the josm-dev
mailing list